sharky12345
Well-known Member
- Joined
- Aug 5, 2010
- Messages
- 3,422
- Office Version
- 2016
- Platform
- Windows
I want to try and produce a single list of items in a range where the cell in column A is not empty.
So far I have the following;
I want 'FaultyList' to be a list of all of those cells where column A is blank - I can get the first one fine, but how do I add the ones after the first found to the list?
So far I have the following;
Code:
LastRow = Sheet2.Cells(Rows.Count, "A").End(xlUp).RowFor Each Cell In Sheet2.Range("A12:A" & LastRow)
If Cell.Value <> "" Then
FaultyList = "Site: " & Cell.Value & vbNewLine & _
"Link: " & Cell.Offset(0, 1).Value & vbNewLine & vbNewLine
End If
Next
I want 'FaultyList' to be a list of all of those cells where column A is blank - I can get the first one fine, but how do I add the ones after the first found to the list?