Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 116
Default Save a backup file

Thank you - this is exactly what I needed

JLGWhiz wrote:
While the workbook you want backup is open and is the active workbook, you
can set a variable to its path.

myPath = ActiveWorkbook.Path

Then use that variable in the SaveAs command as part of the file name.

ActiveWorkbook.SaveAs Filename:=myPath & "\<backupname.xls?"

backupname would be the actual name you give to the backup file and the file
extension would be based on the format to which you want to save the file.
It is better to use the actual workbook name instead of ActiveWorkbook in
case that workbook is not active at the time you decide to initiate the path
variable or do the saveas.

I have a file that I update each day and then it is updated by others. (Not
a

[quoted text clipped - 9 lines]

Thanks


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/201005/1

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
Turning always save backup file to off Ken Setting up and Configuration of Excel 9 August 6th 09 12:46 AM
save & backup file Seeker Excel Discussion (Misc queries) 1 May 29th 09 03:15 AM
In Excel, I want to create a backup copy whenever I save a file. Bearpecs Excel Discussion (Misc queries) 1 June 7th 06 01:52 PM
Create new excel files, Save backup of excel file Gil[_4_] Excel Programming 8 May 9th 06 09:40 PM
How do I shut off making a backup copy of a file when I save in E. kboley2004 Excel Discussion (Misc queries) 2 December 21st 04 10:41 PM


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