Hi,
I'm trying to find the first blank cell in a row and attain its column. I know this question has been posted a million times on all of the forums, but for the life of me I can't seem to get it to work. I've seen many different solutions, but can somebody tell me why this doesn't work?
I'm trying to find the first blank cell in a row and attain its column. I know this question has been posted a million times on all of the forums, but for the life of me I can't seem to get it to work. I've seen many different solutions, but can somebody tell me why this doesn't work?
Code:
With ActiveWorkbook.Worksheets("Set-Up Data") ' choose the worksheet called "Set-Up Data"
Dim col As Integer
col = .Cells(2, Columns.count).End(xlToLeft).Column
.Cells(1, col) = name
.Cells(2, col) = "Necessary?"
End With