VbButtons

  • Thread starter Thread starter Junior
  • Start date Start date
J

Junior

see the below -
How could i get the msgbox to display button 1 and button 2 instead of
yes/no?
and what would be the values when 1 and 2 are selected
thanks

intAns = MsgBox("Are you adding a new position? " _
, vbYesNo + vbQuestion, "Application Change Alert")
If intAns = vbYes Then
Me.Undo
Cancel = True
Else ......
 
You can't do that with a message box. You could do it with a popup modal
form, but why? Yes/No is more undertstandable than button 1 button 2
 
KL... mainly just to try something different - so how do i make the 'No'
button the default button in a yes/no?
 
intAns = MsgBox("Are you adding a new position? " _
, vbYesNo + vbQuestion + vbDefaultButton2, "Application Change Alert")
 

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


Back
Top