Date string question

  • Thread starter Thread starter TB
  • Start date Start date
T

TB

Is there any way to alter the following expression to return a double digit
for single digit months (i.e. 08 instead of 8) without adding more lines of
code?

strMonth=Month(Range("A4").Value)
 
Thanks Bill. No, it isn't homework. Just a line in a very long macro, and
I'm trying to avoid making it even longer.

TB
 
Back
Top