F
Francis Hookham
Two questions regarding the following which I am developing
1
Can the long formula be split into short rows using "_" line breaks? It does
not seem to work except where the line break comes after a equals time
3
It would be best if the "Contents" rather than the "Formula" were the value
put into
Sheets("List").Cells(RowNumber, 1).Value
Many thanks
FRancis Hookham
Sub UpdateList()
RowNumber = 2
RefRow = 2
While Sheets("Data").Cells(RefRow, 1).Value <> ""
Sheets("List").Cells(RowNumber, 1).Value = _
"=Data!RC[9]&"" ""&Data!RC[5]&"", ""&Data!RC[10]&
IF(ISBLANK(Data!RC[11]),"""","",
""&Data!RC[11])&IF(ISBLANK(Data!RC[12]),"""","",
""&Data!RC[12])&IF(ISBLANK(Data!RC[13]),"""","",
""&Data!RC[13])&IF(ISBLANK(Data!RC[14]),"""","", ""&Data!RC[14])"
Sheets("List").Cells(RowNumber, 2).Value = _
"=Data!RC[14]&IF(ISTEXT(Data!RC[15]),""
""&Data!RC[15],"""")"
RowNumber = RowNumber + 1
RefRow = RefRow + 1
Wend
End Sub
1
Can the long formula be split into short rows using "_" line breaks? It does
not seem to work except where the line break comes after a equals time
3
It would be best if the "Contents" rather than the "Formula" were the value
put into
Sheets("List").Cells(RowNumber, 1).Value
Many thanks
FRancis Hookham
Sub UpdateList()
RowNumber = 2
RefRow = 2
While Sheets("Data").Cells(RefRow, 1).Value <> ""
Sheets("List").Cells(RowNumber, 1).Value = _
"=Data!RC[9]&"" ""&Data!RC[5]&"", ""&Data!RC[10]&
IF(ISBLANK(Data!RC[11]),"""","",
""&Data!RC[11])&IF(ISBLANK(Data!RC[12]),"""","",
""&Data!RC[12])&IF(ISBLANK(Data!RC[13]),"""","",
""&Data!RC[13])&IF(ISBLANK(Data!RC[14]),"""","", ""&Data!RC[14])"
Sheets("List").Cells(RowNumber, 2).Value = _
"=Data!RC[14]&IF(ISTEXT(Data!RC[15]),""
""&Data!RC[15],"""")"
RowNumber = RowNumber + 1
RefRow = RefRow + 1
Wend
End Sub