Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2002
    Location
    Hartford, CT
    Posts
    106

    Unanswered: MsgBox not prompting

    Hi,
    I have this piece of code to get an answer from the user.

    Dim Msg, Style, Title, Help, Ctxt, Response
    .
    .

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

    If Response = vbYes Then
    Do someting
    Else
    Do Something else
    End If

    The message box not prompting as a result I get an error message that says
    (Invalid procedure call or argument).

    Please help

    Thanks
    Mo

  2. #2
    Join Date
    Sep 2002
    Location
    Land of OZ
    Posts
    173

    Re: MsgBox not prompting

    If you put in a context, you must put in a helpfile and vice versa

    Try this

    Response = MsgBox(Msg, Style, Title)



    Originally posted by mkasem
    Hi,
    I have this piece of code to get an answer from the user.

    Dim Msg, Style, Title, Help, Ctxt, Response
    .
    .

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

    If Response = vbYes Then
    Do someting
    Else
    Do Something else
    End If

    The message box not prompting as a result I get an error message that says
    (Invalid procedure call or argument).

    Please help

    Thanks
    Mona
    ________________________________
    Life is too short to be sane or sensible. Weird people rule and normal people suck

  3. #3
    Join Date
    Oct 2002
    Location
    Hartford, CT
    Posts
    106

    Re: MsgBox not prompting

    Originally posted by mona
    If you put in a context, you must put in a helpfile and vice versa

    Try this

    Response = MsgBox(Msg, Style, Title)
    Thanks Mona,
    That worked
    Mo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •