Date string question

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)
 
T

TB

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top