Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Confirmation in macro
Message
De
05/03/2005 07:40:41
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
Tous
Information générale
Forum:
Microsoft Office
Catégorie:
Word
Titre:
Confirmation in macro
Divers
Thread ID:
00992989
Message ID:
00992989
Vues:
74
What is the command to get a user confirmation, in Word VBA? And what is the command to exit the macro?

I want something like:
' Potentially dangerous action
if (User answers dialog with "No")
  (cancel macro)
endif
' Continue with macro
' ...
' ...
... using only Word macros, i.e., not Automation.

TIA,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform