date to text formatting

M

Mark Kubicki

need to convert today's date (10/06/03) into the text format "100603"

i give up, how do ya do it?
thanks in advance
mark
 
N

Neil

Mark,
Try this.

Sub ChangeMe()
ActiveSheet.Range("B1").Value = Format(ActiveSheet.Range("a1").Value,
"mmddyy")
End Sub
 
N

Neil

Mark,
Watch the line wrap
Neil
Neil said:
Mark,
Try this.

Sub ChangeMe()
ActiveSheet.Range("B1").Value = Format(ActiveSheet.Range("a1").Value,
"mmddyy")
End Sub
 

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