Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP/VBA equivalent for WdAertsNone
Message
 
À
05/03/2001 13:07:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00481954
Message ID:
00481960
Vues:
11
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform