Solved: Excel 2003 VBA code to Auto Date file names?

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

LEONARDTRAILERS

Thread Starter
Joined
Oct 29, 2010
Messages
32
Hi again,

This one should be much easier than my last issue :D...

I'm writing excel macros and everything is going great except that when i tell my macro to save a particular file i need it to add that day's date (the current date) to the filename...

Any takers?

LTT

Oh yeah, Merry Christmas and Happy Holidays to everyone at Tech Support Guys!!
 

OBP

Joined
Mar 8, 2005
Messages
19,895
& left(date(),2) & "_" & Mid(Date(),4,2) & "_" & right(date(),4)
or
& format(date(), "dd") & "_" & format(date(), "mm") & "_" & format(date(),"yyyy")
 

LEONARDTRAILERS

Thread Starter
Joined
Oct 29, 2010
Messages
32
I'm in the middle of writing a macro right now, i'll include this in it and let you know how it goes...

Thank you very much OBP,

LTT
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top