Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
have_a_cup
 
Posts: n/a
Default Updating copy of Macro workbook...


ok..here's my question..i've looked around, but wasn't able to track it
down..
i have a macro workbook set up on in the default xlstart
folder....unfortunately, at my job, the drive that's on isn't backed
up...so I saved a copy of the wkbk to a drive that is backed up
regularly...

is there a way to automatically update the copy when I make changes or
add macros to the one in the xlstart folder? obviously i should
remember to, but i'm guessing that's not always going to
happen...thanks in advance...


--
have_a_cup
------------------------------------------------------------------------
have_a_cup's Profile: http://www.excelforum.com/member.php...o&userid=35394
View this thread: http://www.excelforum.com/showthread...hreadid=556749

  #2   Report Post  
Posted to microsoft.public.excel.misc
raypayette
 
Posts: n/a
Default Updating copy of Macro workbook...


In the ThisWorkbook moduel you could have:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
activeworkbook.SaveAs("D:...)
End Sub


--
raypayette


------------------------------------------------------------------------
raypayette's Profile: http://www.excelforum.com/member.php...o&userid=29569
View this thread: http://www.excelforum.com/showthread...hreadid=556749

  #3   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben
 
Posts: n/a
Default Updating copy of Macro workbook...

A macro for you.

Sub BUandSave2()
'Saves the current file to a backup folder and the default folder
'Note that any backup is overwritten
Application.DisplayAlerts = False
ActiveWorkbook.SaveCopyAs FileName:="C:\Gordstuff\" & _
ActiveWorkbook.Name
ActiveWorkbook.Save
Application.DisplayAlerts = True
End Sub

You could call it from a Before_Save sub or just place the code into the
Before_Save sub.


Gord Dibben MS Excel MVP

On Wed, 28 Jun 2006 21:32:06 -0500, have_a_cup
wrote:


ok..here's my question..i've looked around, but wasn't able to track it
down..
i have a macro workbook set up on in the default xlstart
folder....unfortunately, at my job, the drive that's on isn't backed
up...so I saved a copy of the wkbk to a drive that is backed up
regularly...

is there a way to automatically update the copy when I make changes or
add macros to the one in the xlstart folder? obviously i should
remember to, but i'm guessing that's not always going to
happen...thanks in advance...


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
Search, Copy, Paste Macro in Excel [email protected] Excel Worksheet Functions 0 January 3rd 06 06:51 PM
How can I get a validation to run in a macro on a shared workbook? arewa Excel Discussion (Misc queries) 3 January 2nd 06 11:31 PM
macro save a workbook whilst increasing file no shrek Excel Worksheet Functions 0 November 10th 05 02:40 PM
Issuing macro in workbook from separate workbook Nigel Excel Discussion (Misc queries) 1 May 16th 05 05:46 PM
Cannot copy from one workbook to another Michael Malinsky Excel Discussion (Misc queries) 4 May 10th 05 05:48 PM


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