O
OughtFour
I'm used to using
With Dialogs(wdDialogFileSaveAs)
If .Display = -1 then
[do stuff]
.Execute
End If
With this powerful feature, .Display shows the FileSaveAs dialog box and
suspends execution of the macro until the user okays or cancels the dialog.
This works fine in Windows Office 98. But in Office v. X (Mac OS X 10.2.6),
execution does not pause at .Display, which evaluates at -1 even though the
user has not acted.
This problem is intermittent--or rather, it seems to show itself whenever
the macro is either (a) a substitute for the FileSaveAs command or (b) is
called by a macro that is a substitute for a command.
In other words, if I call the macro "floogle" and run it, it works as it is
supposed to. If I call it "Main" (and put it in a project called
"FileSaveAs") and chose the Save As command form the File menu, it fails as
described above.
This behavior suggests that my code is okay, but that something more
fundamental isn't working right. Any ideas about what it could be?
I would be grateful for any information or suggestions.
With Dialogs(wdDialogFileSaveAs)
If .Display = -1 then
[do stuff]
.Execute
End If
With this powerful feature, .Display shows the FileSaveAs dialog box and
suspends execution of the macro until the user okays or cancels the dialog.
This works fine in Windows Office 98. But in Office v. X (Mac OS X 10.2.6),
execution does not pause at .Display, which evaluates at -1 even though the
user has not acted.
This problem is intermittent--or rather, it seems to show itself whenever
the macro is either (a) a substitute for the FileSaveAs command or (b) is
called by a macro that is a substitute for a command.
In other words, if I call the macro "floogle" and run it, it works as it is
supposed to. If I call it "Main" (and put it in a project called
"FileSaveAs") and chose the Save As command form the File menu, it fails as
described above.
This behavior suggests that my code is okay, but that something more
fundamental isn't working right. Any ideas about what it could be?
I would be grateful for any information or suggestions.