Avatar of Frank Freese
Frank Freese
Flag 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?
VBA

Avatar of undefined
Last Comment
Frank Freese

8/22/2022 - Mon
Martin Liss

Worksheets("Historical").Range("F2:F5") = Now
ASKER CERTIFIED SOLUTION
Noah

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Frank Freese

ASKER
Thanks folks. Noah's solution met my objective.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes