Copy the time to the next row of another column

0 votes
What VBA code should be used to copy the current time to the subsequent row of a neighboring column? I shall start the next event at the time I finish the current one.

As much as I've tried, I can't make a loop iterate since I always have to go to the next row of the full column.
Jan 30, 2023 in Others by Kithuzzz
• 38,000 points
876 views

1 answer to this question.

0 votes

Try this:

Sub CopyCurrentTime()
Dim currentRow As Integer
currentRow = ActiveCell.Row
Cells(currentRow + 1, ActiveCell.Column + 1).Value = Now

End Sub
answered Jan 30, 2023 by narikkadan
• 86,360 points

Related Questions In Others

0 votes
1 answer
0 votes
1 answer

Is there a way to produce a sum according to date/time stamp values of another column on excel?

Assuming the input data for the second ...READ MORE

answered Mar 25, 2023 in Others by narikkadan
• 86,360 points
1,110 views
0 votes
1 answer

Another method to extract the last row containing data in a column

The "used range" might not be accurate. ...READ MORE

answered Mar 28, 2023 in Others by Kithuzzz
• 38,000 points
1,039 views
0 votes
0 answers