I have this code
I want the 'filename to be todays time and date.Please Login or Register to view this content.
How do I make this happen?
I have this code
I want the 'filename to be todays time and date.Please Login or Register to view this content.
How do I make this happen?
Hi Oberon,
Try:
Dim sStr As String
sStr = Format(Now, "yyyymmdd (hh-mm)") & ".xls"
ActiveWorkbook.SaveAs Filename:="c:\t\q1\blue\save\" & sStr
Change the date / time format to suit.
---
Regards,
Norman
"oberon.black" <[email protected]>
wrote in message
news:[email protected]...
>
> I have this code
>
>
> Code:
> --------------------
>
> ActiveWorkbook.SaveAs Filename:="c:\t\q1\blue\save\"filename""
>
> --------------------
>
>
> I want the 'filename to be todays time and date.
>
> How do I make this happen?
>
>
> --
> oberon.black
> ------------------------------------------------------------------------
> oberon.black's Profile:
> http://www.excelforum.com/member.php...o&userid=26732
> View this thread: http://www.excelforum.com/showthread...hreadid=469731
>
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks