JumboCactuar
Well-known Member
- Joined
- Nov 16, 2016
- Messages
- 788
- Office Version
- 365
- Platform
- Windows
Hi,
when i write date/time to a cell like this:
Range("G2").Value = Now
it outputs like: 19/09/2018 01:32:24
which is correct but im wanting it to display time only. I need the date for various calculations so cant just use Time() function.
I can manually set format to hh:mm after writing to cell but wondering if it can be done with vba
so i need Now() to display 01:32 but still hold the date value (43362.0641666667) if that makes sense
thanks for any help
when i write date/time to a cell like this:
Range("G2").Value = Now
it outputs like: 19/09/2018 01:32:24
which is correct but im wanting it to display time only. I need the date for various calculations so cant just use Time() function.
I can manually set format to hh:mm after writing to cell but wondering if it can be done with vba
so i need Now() to display 01:32 but still hold the date value (43362.0641666667) if that makes sense
thanks for any help