Results 1 to 4 of 4
  1. #1
    Star Lounger
    Join Date
    Aug 2001
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Specify only Title and Prompt in a MsgBox.. (2000)

    How can I specify only title and prompt for a MsgBox, disregarding the help and context arguments of MsgBox?

  2. #2
    5 Star Lounger
    Join Date
    Feb 2001
    Location
    Dallas plus 20 miles or so, Texas, USA
    Posts
    876
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Specify only Title and Prompt in a MsgBox.. (2000)

    Kevin,

    I think you can just ignore them, and not put them in. For example:

    <pre>a = MsgBox("This is a test of Kevin's msg box", vbCritical, "Kevin's test msgbox")
    </pre>


    Thanks,

  3. #3
    Star Lounger
    Join Date
    Aug 2001
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Specify only Title and Prompt in a MsgBox.. (2000)

    I got it. I was trying to call MsgBox without assigning its return value to something. Thanks!

  4. #4
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Specify only Title and Prompt in a MsgBox.. (2000)

    If you don't assign the return value to something, then you have to leave out the parenthesis around the parameters, likt this:

    <pre> MsgBox "This is a test of Kevin's msg box", vbCritical, "Kevin's test msgbox"
    </pre>

    Legare Coleman

Posting Permissions

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