Hi, I am having trouble moving the current date into a cell. When I use the below line I am getting a funny date, 4/45/27. When I manually change the format to date then the it corrects.
The I added the below line to change the format, but I got a "false" return.
I have been searching online for an answer, but I must be missing something.
Thanks
VBA Code:
Worksheets("COPYORD").Range("D" & y).Value = Date
The I added the below line to change the format, but I got a "false" return.
VBA Code:
Worksheets("COPYORD").Range("D" & y).Value = NumberFormat = "dd-mm-yy"
I have been searching online for an answer, but I must be missing something.
Thanks