Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default saving with VBA

Will the text always be the same

Workbooks("Report.xls").SaveAs "S:\Reports\Report" & _
format(data,"yyyymmdd") & ".xls"

--
Regards,
Tom Ogilvy

"havocdragon" wrote in message
...
Hello all =). I am programming a macro in VBA at work, and I've come

across
one major hicup. The macro I have is assigned to a button on a worksheet,
this macro then opens a report, sorts, formats, and references

information,
and then saves it to the network drive (so far no problems). The only

problem
I am having, is I wan't this file to save with text+current date everytime

I
run the macro. The problem I'm having with that, is no matter what I do,

once
the first entry has been made to the save as, it always is that. Any

thoughts
on how I could do this?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default saving with VBA

Dude thanks!!! I have been banging my head on that for a while. I knew it had
to be something similar to that, but for some reason I just couldn't get the
syntax right =)

"Tom Ogilvy" wrote:

Will the text always be the same

Workbooks("Report.xls").SaveAs "S:\Reports\Report" & _
format(data,"yyyymmdd") & ".xls"

--
Regards,
Tom Ogilvy

"havocdragon" wrote in message
...
Hello all =). I am programming a macro in VBA at work, and I've come

across
one major hicup. The macro I have is assigned to a button on a worksheet,
this macro then opens a report, sorts, formats, and references

information,
and then saves it to the network drive (so far no problems). The only

problem
I am having, is I wan't this file to save with text+current date everytime

I
run the macro. The problem I'm having with that, is no matter what I do,

once
the first entry has been made to the save as, it always is that. Any

thoughts
on how I could do this?




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
Automaticly saving formula's to values when saving Gunti Excel Discussion (Misc queries) 8 November 11th 08 09:34 AM
Saving fak119 Excel Discussion (Misc queries) 1 August 28th 06 08:36 AM
Saving help Murhfeeh56 Excel Discussion (Misc queries) 0 June 21st 06 12:10 AM
Saving on CD TJ Excel Discussion (Misc queries) 0 January 2nd 06 09:00 PM
Saving a Workbook: Forcing User to Rename before Saving Rollin_Again[_6_] Excel Programming 5 April 16th 04 02:54 PM


All times are GMT +1. The time now is 09:35 AM.

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

About Us

"It's about Microsoft Excel"