![]() |
#1
|
|||
|
|||
![]()
If this code is in the 'ThisMacroStorage' section of a macro I use called scale.gms, it causes an annoying warning message box to pop up everytime I open a document. Here is the code.
Private Sub GlobalMacroStorage_DocumentOpen(ByVal Doc As Document, ByVal FileName As String) ScaleApps.ScaleCaption ActiveDocument.LoadStyleSheet "C:\BlankTemplate.CDT" End Sub The code in question is the LoadStyleSheet which is causing the problem. Would anyone have a solution please? The warning box reads: "Do you want to revert to the saved........cdr?" |
#3
|
|||
|
|||
![]()
You should never work with files in C drives root. It's best to use a temp folder, the documents folder or the User Data folder. This will cause you some grief in Win8 and probably Win7 as well. It also does not meet MS standards for File IO.
|
![]() |
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 |
Empty Text boxes causing Runtime 91 Object Variable not set | PaulANormanNZ | CorelDRAW/Corel DESIGNER VBA | 2 | 21-08-2009 02:15 |
Disabling warning programatically | vjCorel | CorelDRAW/Corel DESIGNER VBA | 2 | 23-04-2009 13:53 |
X4 SaveAs Causing Crash | burmeisn | CorelDRAW/Corel DESIGNER VBA | 2 | 15-08-2008 18:22 |