Link to home
Start Free TrialLog in
Avatar of Frank Freese
Frank FreeseFlag for United States of America

asked on

VBA date to line code

Folks,
I would like to add the date to a range:
Sub Copy_Paste()
Dim Tdate As Date

Worksheets("Forecast").Range("A4:E7").Copy Worksheets("Historical").Range("A2:E5")
Worksheets("Historical").Range("B2:E5").Interior.Color = vbBlue
Worksheets("Historical").Range("B2:E5").Font.Color = vbRed
Worksheets("Historical").Range("F2:F5").Now

Open in new window


I need to correct my code in the last line. How will that look?
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Worksheets("Historical").Range("F2:F5") = Now
ASKER CERTIFIED SOLUTION
Avatar of Noah
Noah
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Frank Freese

ASKER

Thanks folks. Noah's solution met my objective.