Yes/No Button

D

dataH

Can anybody show how to programmable respond yes to a yes no button.


Thanks

dataH
 
J

Jay Freedman

Can anybody show how to programmable respond yes to a yes no button.


Thanks

dataH

That depends on what kind of button it is and where it is. I can think of at
least these:

- A message box with Yes and No buttons displayed by a macro
- ActiveX buttons in the body of a document
- Buttons on a userform
- A MacroButton field
- Buttons in some other program than Word

Some of these can be "pushed" programmatically and others can't.
 
G

ghagg

Thank you for taking this question

I believe it is a message box with yes no buttons. Also, it is provided by
microsoft in word as an icon alert info message. Hope that helps.


dataH
 
J

Jay Freedman

In that case, I don't know of any way to respond programmatically. It might
be possible by using some of the Windows API functions such as
GetWindowHandle and SendMessage, but that's not my area. Karl Peterson
(http://vb.mvps.org/) might have something that will work.

Besides simply getting something to act on the message box's buttons, you
also have the problem of knowing when your code should run. I don't know how
you can do that, either -- it depends on when and why Word is showing the
message box.
 

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

Similar Threads


Top