Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New User needs a hand

Status
Not open for further replies.

cmoughan

Technical User
Jul 22, 2003
9
US
I am trying to rename a file with the current month.
ex. supplies.xls
rename to suppliesxxx.xls (where xxx is the current month abbreviation. jan, feb. etc)

Am I in over my head?
I can rename the file normally, but can't figure out how to input the month string.

Thanks in advance

Chris
 
Just to add to Skip's code - to get the current month:

yourMonth = format(date,"mmm")


Rgds, Geoff
It's Super Happy Campo Funtime!
Want the best answers to your questions ? - then read me baby one more time - faq222-2244
 
Thanks Guys. I'm going to try it now and see if I can get it to go. Thanks again.



Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top