K
kirkm
Found this vis Goggle
Sub LastCellInRow()
Range("IV1").End(xlToLeft).Select
End Sub
It says it gives you the last Cell in a row.
But I can't see where you tell it the row or how you see the result.
I know my highest col is "CP" or 94 and was going to use this -
for x = 94 to 1 step -1
if Cells(10,x)> "" then Answer = x:Exit For
next x
Once the fisrt method is working, which is best ?
Thanks - Kirk
Sub LastCellInRow()
Range("IV1").End(xlToLeft).Select
End Sub
It says it gives you the last Cell in a row.
But I can't see where you tell it the row or how you see the result.
I know my highest col is "CP" or 94 and was going to use this -
for x = 94 to 1 step -1
if Cells(10,x)> "" then Answer = x:Exit For
next x
Once the fisrt method is working, which is best ?
Thanks - Kirk