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 in Others by Kithuzzz
• 33,140 points
68 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 by narikkadan
• 58,640 points

Related Questions In Others

0 votes
1 answer
0 votes
0 answers

how to get another copy of my cert

Oct 1, 2019 in Others by Loletha
• 120 points
221 views
0 votes
1 answer

How to find the time complexity of a program?

Hi@akhtar, The first loop is O(N) and the ...READ MORE

answered Oct 15, 2020 in Others by MD
• 95,460 points
595 views
0 votes
1 answer

Transpose column on one sheet to row on another, with linking

select A1:J1 in worksheet B and enter: =TRANSPOSE('worksheet ...READ MORE

answered Sep 25, 2022 in Others by narikkadan
• 58,640 points
209 views
0 votes
1 answer

Retrieve epay.info Balance with VBA and Excel

This code should log you in, provided ...READ MORE

answered Sep 5, 2018 in Blockchain by digger
• 26,740 points
570 views
0 votes
1 answer

How to load file to Excel Power query from SFTP site

Currently, I don't think there is a ...READ MORE

answered Dec 3, 2018 in Power BI by Upasana
• 8,620 points
2,524 views
0 votes
1 answer

Using VBA Excel to create a gramatically correct list

The Excel AND function is a logical ...READ MORE

answered Feb 9, 2022 in Others by gaurav
• 22,970 points
142 views
0 votes
2 answers

How to copy a formula horizontally within a table using Excel VBA?

Hi so basically, create an adjacent column ...READ MORE

answered Feb 16, 2022 in Others by Edureka
• 13,630 points
384 views
0 votes
1 answer

How to print the next row every time a function runs? (openpyxl)

Verify the indentation. I executed the sample ...READ MORE

answered Jan 7 in Others by narikkadan
• 58,640 points
117 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP