I made some changes and now it doesn't run the macro no matter which you pick. I will just post the code and maybe someone can tell me where I am going wrong. Thanks

Originally Posted by
Jim Thomlinson
Give this a try...
If MsgBox("Do you want to update flags?", vbYesNo, "Update
Flags") = vbYes then
[DoIt]
Else
[Don't]
End If
--
HTH...
Jim Thomlinson
"miwarren" wrote:
>
> It did prompt me, but it ran the macro no matter which you chose.
> Anymore help???
>
> Thanks
>
> Brett0769 Wrote:
> > Use a message box to get the choice from the user, here's a sample.
> >
> > Dim intYN As Integer
> > intYN = MsgBox("Do you want to update flags?", vbYesNo, "Update
> > Flags")
> > If intYN = 6 then
> > [DoIt]
> > Else
> > [Don't]
> > End If
>
>
> --
> miwarren
> ------------------------------------------------------------------------
> miwarren's Profile: http://www.excelforum.com/member.php...o&userid=24682
> View this thread: http://www.excelforum.com/showthread...hreadid=477638
>
>
Bookmarks