Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Export a file with today's date

Hello,

I would like to export my excell workbook with today's date as name.

For instance nameofmyexcellsworbook 20040428.xls

No problem to do the export in VBA. The only problem is that I don'
know how to deal with the date...

Even If I put today() in a cell and then export with the value of thi
cell it doesn't work...

Could you help me please ?

Thank you very much in advance,

Gre

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Export a file with today's date

See the attached file. By your post, im sure you can access the cel
value from within VBA and work with it as you please.

-Gitcyphe

Attachment filename: nameofmyexcellsworbook.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=52914
--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default Export a file with today's date

does
http://www.mvps.org/dmcritchie/excel/backup.htm
answer your question. The following was for a directory

filename = "c:\mybackup\B" & Format(Now(), "yyyy_mmdd") & ".xls"
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Grek " wrote in message ...
Hello,

I would like to export my excell workbook with today's date as name.

For instance nameofmyexcellsworbook 20040428.xls

No problem to do the export in VBA. The only problem is that I don't
know how to deal with the date...

Even If I put today() in a cell and then export with the value of this
cell it doesn't work...

Could you help me please ?

Thank you very much in advance,

Greg


---
Message posted from http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Export a file with today's date

? "ABCD " & format(date,"yyyymmdd") & ".xls"
ABCD 20040429.xls


might give you some ideas.

--
Regards,
Tom Ogilvy

"Grek " wrote in message
...
Hello,

I would like to export my excell workbook with today's date as name.

For instance nameofmyexcellsworbook 20040428.xls

No problem to do the export in VBA. The only problem is that I don't
know how to deal with the date...

Even If I put today() in a cell and then export with the value of this
cell it doesn't work...

Could you help me please ?

Thank you very much in advance,

Greg


---
Message posted from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Export a file with today's date

Hi,

Thank you very much for your response.

I ve just tried that and it seems to work :


ActiveCell.Value = Format(Now(), "yyyymmdd")

Thanks again,

Gre

--
Message posted from http://www.ExcelForum.com



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Export a file with today's date

Thx a lot !

Greg

--
Message posted from http://www.ExcelForum.com

Reply
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
conditional formatting for cell date to equal today's date Sistereinstein Excel Worksheet Functions 2 September 10th 12 07:53 PM
date in Cell to change colors if the date is beyond today's date Pete Elbert Excel Discussion (Misc queries) 2 June 6th 09 06:31 AM
How to use Today's date in a cell and make it stay the same date ADSK Excel Discussion (Misc queries) 6 November 17th 08 07:34 PM
Reading File Name in VB Macro that contains today's date dhstein Excel Discussion (Misc queries) 10 November 13th 08 02:48 AM
How do I export xml file and keep the date. Nicholas Excel Discussion (Misc queries) 3 March 6th 08 07:02 PM


All times are GMT +1. The time now is 04:35 PM.

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"