Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All
Is it possible to change this code: Sub SaveBackup() ActiveWorkbook.SaveCopyAs "d:\MyBook.xls" End Sub to save a copy of the Folder in which is the Book-to back up not only €śMyBook€ť but the whole current folder with the book? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tim,
If your source and destination folders are fixed, then it is simple. The code below will do that. For extra options you can look in your command box and type "xcopy /?" ChDrive C: ChDir "c:\test\" Myapp = Shell("cmd /c xcopy c:\test d:\test", vbNormalFocus) If you want to keep your dos box open after proces you can use the "cmd /k" option this can be handy when an error occur. Chris |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thak you Chris !!! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Force a Readonly Workbook to save to a different folder | Excel Discussion (Misc queries) | |||
save workbook created from templete to a specific folder | Excel Discussion (Misc queries) | |||
Need code to save file to new folder, erase from old folder | Excel Discussion (Misc queries) | |||
code to save the whole folder in which is the workbook | Excel Programming | |||
prevent user from saving file to a folder but allow my code to save from behind. | Excel Programming |