![]() |
#1
|
|||
|
|||
![]()
I'm trying to save a copy of a file to a USB stick in the background. This is the code I tried:
Code:
Sub SaveToStick() If Dir("Q:\") <> "" Then ActiveDocument.SaveAsCopy ("Q:\" & ActiveDocument.name) MsgBox "Saved as Q:\" & ActiveDocument.name, vbInformation, "File Saved" ElseIf Dir("M:\") <> "" Then ActiveDocument.SaveAsCopy ("M:\" & ActiveDocument.name) MsgBox "Saved as M:\" & ActiveDocument.name, vbInformation, "File Saved" Else MsgBox "Please Insert USB Stick", vbCritical, "Oops" End If End Sub |
#2
|
||||
|
||||
![]()
The only thing I can think of is after your USB copies are saved, resave the document to it's original location, that way that is the one being displayed.
__________________
Sean Waiting for a ride in the T.A.R.D.I.S. |
#3
|
||||
|
||||
![]()
I can confirm the behavior and agree, that it shouldn't change your ActiveDocument to the SavedCopy because this is the same behavior as SaveAs.
I will report it to Corel and see what they say. -Shelby |
#4
|
|||
|
|||
![]()
Thanks Shelby, I'll be interested to see what Corel say. I guess it's a bug.
|
#5
|
||||
|
||||
![]()
Hi.
As a work around maybe save the file, then move it if the usb directory is available. ~John |
#6
|
|||
|
|||
![]()
You've been around here long enough, we need to start calling you SomeBodyNow
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Copy from DRAW to PP | Keefster | CorelDRAW/Corel DESIGNER VBA | 7 | 25-04-2010 18:43 |
How can I copy an Envelope? | RobC | CorelDRAW/Corel DESIGNER VBA | 13 | 11-04-2008 14:33 |
how to save multiple pages in coreldraw 12 OR how to save quality eps for animation | kickingandscreaming | General | 2 | 19-08-2007 23:28 |
Copy Protect PDF | ddonnahoe | CorelDRAW/Corel DESIGNER VBA | 2 | 07-08-2006 08:25 |
COPY DropShadow | igor___ | CorelDRAW/Corel DESIGNER VBA | 1 | 28-03-2006 21:44 |