Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 238
Default Workbook backup macro

Looking to create a workbook backup macro. I want to copy active
workbook to a new workbook name. The backup workbook should be passive
"without macros", "without formulas" & "without charts". Sample code I
tried does delete macros as it copies but not worksheet code.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Workbook backup macro

Backup before running any new macro for the first time ever (in case the end
results are unintended):

Sub LoopingMacro()

Dim WS_Count As Integer
Dim I As Integer
WS_Count = ActiveWorkbook.Worksheets.Count

' Begin the loop.
For I = 1 To WS_Count

Worksheets.Select
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False

Next I

End Sub

Regards,
Ryan---

--
RyGuy


"Fan924" wrote:

Looking to create a workbook backup macro. I want to copy active
workbook to a new workbook name. The backup workbook should be passive
"without macros", "without formulas" & "without charts". Sample code I
tried does delete macros as it copies but not worksheet code.

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
Creating a Backup copy of workbook justaguyfromky Excel Programming 3 March 3rd 06 11:02 PM
backup copy of a workbook R..VENKATARAMAN Excel Discussion (Misc queries) 0 February 1st 06 12:47 PM
backup copy of a workbook R..VENKATARAMAN Excel Discussion (Misc queries) 0 February 1st 06 12:24 PM
Save a BackUp of Workbook Rocky McKinley Excel Programming 1 June 11th 05 02:59 AM
Workbook backup before opening? toothfish__ Excel Programming 7 January 14th 04 01:33 PM


All times are GMT +1. The time now is 08:21 PM.

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"