tanyaleblanc
Board Regular
- Joined
- Mar 16, 2019
- Messages
- 145
Hi, I'm trying to figure out a way to post a date of 05-15-2019 in column AJ and fill down to the last blank cell using column G as my anchor. When I use the code below, it not only puts 05-15-2019 in column AJ but all columns and this date changes each month, this month is 05-15-2019, but next month it's 06-15-2019 and so on. Is there a way to do that, currently I'm putting =NOW() in cell AJ1 and trying to copy that to the first blank cell in AJ and filling down to the last blank cell using G as my anchor, but this code is not working.
Any suggestions,
Any suggestions,
Code:
Windows("Rental Rec.xlsm").Activate Sheets("Owned").Select
lastrow = Cells(Rows.Count, "G").End(xlUp).Row
Range("AJ1").Select
Selection.Copy
lrownew = Cells(Rows.Count, "AJ").End(xlUp).Row + 1
Range("AJ" & Rows.Count).End(xlUp).Offset(1).Value = "05/15/2019"
Range(Range("AJ" & Rows.Count).End(xlUp).Offset(1), Range("G" & Rows.Count).End(xlUp).Offset(, 2)).Value = "05/15/2019"