Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sin Sin is offline
external usenet poster
 
Posts: 6
Default Save as new file ONLY and do not save changes to existing xls

I have an existing program that runs in my xls and make changes to various
worksheet in the xls, after all the changes, I want the code to save the xls
under another name WITHOUT making saving the changes in the existing xls.
Below is the code that I currently using, while saving the file as a new xls
this code also make save changes to my exisiting xls, could anyone tell me
how I can alter the code so that it does not save the changes in the existing
xls?


Application.ScreenUpdating = True

ChDir "S:\Prof\Monthly\2007"
ActiveWorkbook.SaveAs Filename:= _
"S:\Prof\Monthly\2007\Report.xls", FileFormat _
:=xlNormal, Password:="", WriteResPassword:="",
ReadOnlyRecommended:= _
False, CreateBackup:=False

End Sub

Thx
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
Force Save over existing file XCESIV[_18_] Excel Programming 3 May 25th 06 08:51 AM
Existing file not defaulting to same location using "Save As" Daniel918 Excel Discussion (Misc queries) 1 June 1st 05 12:55 AM
can i save an existing .xls file as a .csv file using command line craigkan Excel Discussion (Misc queries) 2 February 18th 05 02:01 PM
Automatically Replacing existing file on save windsurferLA Excel Programming 2 February 5th 05 05:10 PM
Automatically replace existing file on save ronber[_2_] Excel Programming 1 September 25th 03 10:05 PM


All times are GMT +1. The time now is 03:11 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"