I like the ability to use conditions, such as [<100], or colours, such as [Red], in custom number formats in cells.
But can I use these, or an equivalent, using Format in VBA?
My current requirement is something like this:
Using other forms within the format expression, such as \N\o\o\n, or "[=0]" & Chr(34) & "Midnight" ..., don't help.
Is it something that Format does not cater for?
Thanks
But can I use these, or an equivalent, using Format in VBA?
My current requirement is something like this:
Code:
shtCalendar.Cells(rt, cPlace) = shtEvents.Cells(r, cEventPlace) & Chr(10) & Format(shtEvents.Cells(r, cEventTime), "[=0]""Midnight"";[=0.5]""Noon"";h.mm am/pm")
Using other forms within the format expression, such as \N\o\o\n, or "[=0]" & Chr(34) & "Midnight" ..., don't help.
Is it something that Format does not cater for?
Thanks