Tejas Kore
Board Regular
- Joined
- Nov 2, 2017
- Messages
- 72
- Office Version
- 365
- Platform
- Windows
Hi Friends,
I have this data in one column.
Date
29-12-2017
30-12-2017
When I am pasting this data in another excel through VBA code , it is not preserving data format.
This is the sane data after pasting.
Date
43098
43099
I guess these are no. of days.
Do we have a way in which we can preserve the date format ?
This is my code snippet of pasting data
wsO.Range("A1").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
I have this data in one column.
Date
29-12-2017
30-12-2017
When I am pasting this data in another excel through VBA code , it is not preserving data format.
This is the sane data after pasting.
Date
43098
43099
I guess these are no. of days.
Do we have a way in which we can preserve the date format ?
This is my code snippet of pasting data
wsO.Range("A1").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False