comfirm yes no popup (1 Viewer)

2ippy

Newbie Here, Be gentle.
Local time
Today, 20:01
Joined
Nov 10, 2006
Messages
78
How do i go about making a confirm yes and no dialog.

I know i can do it with a form, but would rather have a proper one :D
 

Matt Greatorex

Registered User.
Local time
Today, 15:01
Joined
Jun 22, 2005
Messages
1,019
You should be able to adapt this to suit:
You don't need to use all of the criteria, just remember to include all commas prior to each one you do use.
Code:
Dim Msg, Style, Title, Help, Ctxt, Response, MyString

Msg = "Do you want to continue ?"
Style = vbYesNo + vbCritical + vbDefaultButton2
Title = "MsgBox Demonstration" 
Help = "DEMO.HLP"
Ctxt = 1000

Response = MsgBox(Msg, Style, Title, Help, Ctxt)

If Response = vbYes Then    ' User chose Yes.
    MyString = "Yes"
Else    ' User chose No.
    MyString = "No" 
End If
 

2ippy

Newbie Here, Be gentle.
Local time
Today, 20:01
Joined
Nov 10, 2006
Messages
78
brill thxs
 

Users who are viewing this thread

Top Bottom