Results 1 to 4 of 4

Thread: Message boxes

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    2
    How do I determine which button was pressed on a vbyesNoCancel message box?

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Code:
    mbResponse=Msgbox("Push Yes, No, or Cancel",vbYesNoCancel,"Response Handling")
    If mbResponse=vbYes then
    
    elseif mbResponse=vbNo then
    
    else
    'must be vbCancel
    
    end if
    or use the select case method either way

  3. #3
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    a = msgbox("what",vbyesnocancel,"title")

    select case a

    case vbno

    case vbyes

    case vbcancel

    end select
    Kurt Simons
    [I know I'm a hack but my clients don't!]

  4. #4
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    you beat me!
    Kurt Simons
    [I know I'm a hack but my clients don't!]

Posting Permissions

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



Click Here to Expand Forum to Full Width