Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,564
- Office Version
- 365
- 2016
- Platform
- Windows
I am using this line of code to place a text time value into a cell, convert it to a valid time number, and format it as "h:mmA/P"
The format is right, but I don't believe the time is true. (ie if I try to manually change the format to a number I still get the text).4
What needs tweaking?
Code:
ws_cd.Cells(r, 27) = Format(CDate(.Cells(rp, 11)), "h:mmA/P") 'light off
The format is right, but I don't believe the time is true. (ie if I try to manually change the format to a number I still get the text).4
What needs tweaking?