I have a vba which inserts a date in the selected cell and it works by clicking a command button but it is a long process clicking in each cell, clicking the button and then moving down to the next cell etc.
Sub timeStamp()
Dim ts As Date
With Selection
.Value = Now
.NumberFormat = "m/d/yyyy"
End With
End Sub
I would like to automate the process so whenever I click the button it updates- if there is text in B2 it must date stamp C2 and continue until there is no more text in column "B".
But the next day I input data into column B it must not overwrite the date in column C but start the date in the first empty cell in column C.
Thanks for your help.
Pete
Sub timeStamp()
Dim ts As Date
With Selection
.Value = Now
.NumberFormat = "m/d/yyyy"
End With
End Sub
I would like to automate the process so whenever I click the button it updates- if there is text in B2 it must date stamp C2 and continue until there is no more text in column "B".
But the next day I input data into column B it must not overwrite the date in column C but start the date in the first empty cell in column C.
Thanks for your help.
Pete