Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP/VBA equivalent for WdAertsNone
Message
 
 
To
05/03/2001 13:07:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00481954
Message ID:
00481960
Views:
12
>Hi All,
>
>I'm running (.application.run(MSFilter) a Word macro (M$Filter supplied by M$ and I can't edit it) and I want to suppress the prompts, which I assume are alerts - but maybe not. Anywhy there is a Word command "wdAlertsNone" that I'd like to execute prior to running the M$Filter macro. Maybe that would suppress the prompts. But .application.Display.wdAlertsNone generates an error. I've tried several combinations of syntax including "= 0" etc. but to no avail. No sample in any of my books. Not even listed in the index. Can you help me with the correct syntax?

Try the following, preceeding your macro in VFP:
 #DEFINE wdAlertsNone 0
oWord.DisplayAlerts = wdAlertsNone
If it's in your Word macro, try:
Application.DisplayAlerts = wdAlertsNone
Hope this helps.

- della
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform