View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
smartin smartin is offline
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