Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Confirmation in macro
Message
From
05/03/2005 07:40:41
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
All
General information
Forum:
Microsoft Office
Category:
Word
Title:
Confirmation in macro
Miscellaneous
Thread ID:
00992989
Message ID:
00992989
Views:
73
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)
Next
Reply
Map
View

Click here to load this message in the networking platform