Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default How to Override a VBOKCancel button?

How possible is to override a VBOKCancel button?

The requirement is to replace it with another dialog containing three
buttons "OK", "Cancel" and "Debug".

OK & Cancel to work the same as in VBOKCancel buttons
for instance: i wanted to add another buttion say "Debug"


Thanks for the reply in Advance
Venkat
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 915
Default How to Override a VBOKCancel button?

Venkatesh V wrote:
How possible is to override a VBOKCancel button?

The requirement is to replace it with another dialog containing three
buttons "OK", "Cancel" and "Debug".

OK & Cancel to work the same as in VBOKCancel buttons
for instance: i wanted to add another buttion say "Debug"


Thanks for the reply in Advance
Venkat


You need to make your own form if you want a button that says "Debug".

Alternatively you could do something like this

Sub Venkatesh_V()
MsgBox "Please click Yes to debug, " & _
"OK to do something else " & _
"or Cancel to do nothing.", vbYesNoCancel
End Sub
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default How to Override a VBOKCancel button?

Look at Excel vba help under "MsgBox" for your options.
VbYesNoCancel is about as close as you can come.
Another way would be to use a UserForm of your own design.
--
Jim Cone
Portland, Oregon USA



"Venkatesh V"

wrote in message
How possible is to override a VBOKCancel button?
The requirement is to replace it with another dialog containing three
buttons "OK", "Cancel" and "Debug".
OK & Cancel to work the same as in VBOKCancel buttons
for instance: i wanted to add another buttion say "Debug"
Thanks for the reply in Advance
Venkat
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
changing vbOKCancel button title Jase Excel Discussion (Misc queries) 8 August 19th 08 08:56 PM
Override normal VBA when clicking on a add-in (BEx) toolbar button Ross @ CooperInd[_2_] Excel Programming 2 August 15th 07 10:46 PM
Exiting Sub when Selecting Cancel on vbOKCancel Rob Excel Discussion (Misc queries) 6 June 1st 07 03:46 AM
vbOKCancel box to close [email protected] Excel Programming 3 August 22nd 06 10:02 AM
Qn: vbOKCancel -- Cancel doesn't work?? Michael Vaughan Excel Programming 4 August 27th 04 07:31 PM


All times are GMT +1. The time now is 10:28 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"