LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Filename with date and time

Friends,

The below portion of a macro saves a file with the current
date as part of the file name in the format:
Voyager 5-Oct.xls

ActiveWorkbook.SaveAs Filename:= _
"H:\Reporting\Voyager " & Format(Date, "d-mmm") & _
".xls"

I want to modify the macro so it also saves the file with
the current date and also the current time, in the
something like the format:
Voyager 5-Oct 12_08 pm.xls

How would I do this?

Thanks,
Alan
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding date for filename Wins07 Excel Discussion (Misc queries) 2 July 31st 07 02:02 PM
set filename to <filename-date on open bob engler Excel Worksheet Functions 2 July 13th 06 05:11 AM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM
Filename with current Date() Graham[_5_] Excel Programming 1 January 8th 04 07:15 AM
Save Filename+Date+Time? Scooby912 Excel Programming 1 July 25th 03 06:21 PM


All times are GMT +1. The time now is 01:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"