adamprocter
Board Regular
- Joined
- Apr 13, 2015
- Messages
- 53
I am creating a word document from excel which is working great bar these 2 fields they are set in excel as Date and Time columns, which are originally generated from NOW() & TODAY()
The date seems to paste in almost ok (DD/MM) aka 11/06 but misses of the year and the time seems to paste in the sum or the unix date and not something understandable.
Am assuming I need to not copy the value but the adjusted text
any help much appreciated.
The date seems to paste in almost ok (DD/MM) aka 11/06 but misses of the year and the time seems to paste in the sum or the unix date and not something understandable.
Am assuming I need to not copy the value but the adjusted text
Code:
Set wdRng = wdDoc.Bookmarks("myDate").Range
wdRng.Text = Sheets("my sheet 1").Range("Q65536").End(xlUp).Value
Set wdRng = wdDoc.Bookmarks("myTime").Range
wdRng.Text = Sheets("my sheet 1").Range("P65536").End(xlUp).Value
any help much appreciated.