98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Saving, backups, VB
Saving, backups, VB
Resolved · Low Priority · Version 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
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 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
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Change Excel's default fontYou can change the default font and font size for all spreadsheets created in Excel by: |