Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

saving backups vb

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Saving, backups, VB

Saving, backups, VB

ResolvedVersion 2003

Shani has attended:
Excel VBA Intro Intermediate course

Saving, backups, VB

Hi Carlos,

Is there a command to get Excel to save a copy of a workbook elsewhere, without then switching to having the new one open? I want to be able to send backups/copies to another directory, but still be editing the original file.

Thanks,
Shani

Edited on Tue 17 Jun 2008, 09:29

RE: Saving, backups, VB

Hi Shani

If you wish to save a copy of the workbook you are working on do the following:

Sub SaveBkUp()

Dim BkUpFileName As String

BkUpFileName = BkUpFileName = "C:\My Documents\BackUps\......"

'Either have the name and path of the backup hadcoded into the code (as Above) or use a input box to enter it

If BkUpFileName = "" Then Exit Sub

ThisWorkbook.SaveAs BkUpFileName

End Sub


Hope this helps

Carlos

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Adjusting the Elevation and Rotation in a 3-D Chart

For any 3-D chart you create, you can adjust the chart

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.