Bug in wdDialogsContentControlProperties ??

G

Greg Maxey

VBA help states:
The following table shows the meaning of the values that the Show method
returns.

Return value Description
-2 The Close button.
-1 The OK button.
0 (zero) The Cancel button.
0 (zero) A command button: 1 is the first button, 2 is the second
button, and so on.


There appears to be a bug in the wdDialogContentControlProperties. With a
CC selected and using the following code, .Show returns 0 when "OK" is
clicked or when Cancel is clicked. There does not seem to be any way to
determine which was clicked.

Sub Demo()
With Dialogs(wdDialogContentControlProperties)
MsgBox .Show
End With
End Sub
 
J

Jay Freedman

Yep, that's a bug.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top