Livin404
Well-known Member
- Joined
- Jan 7, 2019
- Messages
- 774
- Office Version
- 365
- 2019
- Platform
- Windows
Greetings,
I have a macro which is resulting in me get the error described in the Subject Line.
The current Format in Column E is Custom: dd mmm yyyy hhmm.
My macro is:
Sub twenty_four_hour_Clock()
Thank you very much
I have a macro which is resulting in me get the error described in the Subject Line.
The current Format in Column E is Custom: dd mmm yyyy hhmm.
My macro is:
Sub twenty_four_hour_Clock()
VBA Code:
With Range("E1", Range("E" & Rows.Count).End(xlUp))
.NumberFormat = "E"
.Value = Evaluate(Replace("if(@="""","""",if(isnumber(@),text(mod(@,1),""hhmm""),@))", "@", .Address))
End With
Thank you very much