Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default change yes/no buttons

I have a macro that produces a message box and I have used vbYesNo so the
user can answer a question. However instead of a yes or no answer I want the
user to answer with 'left' or 'right'.

Is it possible to change the text of these buttons?

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 336
Default change yes/no buttons

No, you'll have to go the long way round and create a UserForm with your own
buttons.

"fullers" wrote:

I have a macro that produces a message box and I have used vbYesNo so the
user can answer a question. However instead of a yes or no answer I want the
user to answer with 'left' or 'right'.

Is it possible to change the text of these buttons?

Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default change yes/no buttons

Mainly for this purpose (changing the button captions) I have made a custom
messagebox. This works with a VB6 dll file. Besides giving you the option to
set the button captions it has a lot of other useful features and I use this
now in
any non-trivial Excel application.
If you are interested I can mail the file.

RBS

"fullers" wrote in message
...
I have a macro that produces a message box and I have used vbYesNo so the
user can answer a question. However instead of a yes or no answer I want
the
user to answer with 'left' or 'right'.

Is it possible to change the text of these buttons?

Thanks in advance.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell name to change name in codes of command buttons aussiegirlone Excel Discussion (Misc queries) 0 July 3rd 09 11:16 AM
Change Source / Update Now buttons not available stickboy Links and Linking in Excel 0 February 16th 06 10:33 PM
Why would Excel change position of control buttons? Larry A[_3_] Excel Programming 2 September 21st 05 02:34 AM
Using buttons to change a columns data [email protected] Excel Discussion (Misc queries) 4 May 6th 05 03:55 PM
How to change color of buttons if pressed? Phillips Excel Programming 1 December 11th 03 01:05 AM


All times are GMT +1. The time now is 08:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"