Dear experts, i am trying add a text called "NULL" in the last cell next to the list in a row.
EX: if list starts in A1 and ends in C1 then the word "NULL" should come in D1.
Below is the code i wrote somehow it is neither working not showing any errors. Can any one of you help me on this pls...
Sub inputinLastCell()
Dim lastcell As String
lastcell = range("A1").End(xlToRight).Select + 1
If lastcell = 0 Then
lastcell = "NULL"
Else
End If
End Sub
EX: if list starts in A1 and ends in C1 then the word "NULL" should come in D1.
Below is the code i wrote somehow it is neither working not showing any errors. Can any one of you help me on this pls...
Sub inputinLastCell()
Dim lastcell As String
lastcell = range("A1").End(xlToRight).Select + 1
If lastcell = 0 Then
lastcell = "NULL"
Else
End If
End Sub