+ Reply to Thread
Results 1 to 5 of 5

Option window in macros

  1. #1
    sbmr
    Guest

    Option window in macros

    Years ago I managed to write a macro in excel that brought up a window with
    a yes or no option. I have forgotton how I did that and do not have the said
    file anymore.
    What is that window called so I can look it up in the help?


  2. #2
    GS
    Guest

    RE: Option window in macros

    Hi sbmr,

    I believe what you're looking for is: msgbox.

    Regards,
    GS

    "sbmr" wrote:

    > Years ago I managed to write a macro in excel that brought up a window with
    > a yes or no option. I have forgotton how I did that and do not have the said
    > file anymore.
    > What is that window called so I can look it up in the help?
    >


  3. #3
    Chip Pearson
    Guest

    Re: Option window in macros

    Try

    Dim Res As Long
    Res = MsgBox("Are you sure?", vbYesNo, "Title")
    If Res = vbYes Then
    ' user clicked yes
    Else
    ' user clicked no
    End If



    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com

    "sbmr" <[email protected]> wrote in message
    news:[email protected]...
    > Years ago I managed to write a macro in excel that brought up
    > a window with
    > a yes or no option. I have forgotton how I did that and do not
    > have the said
    > file anymore.
    > What is that window called so I can look it up in the help?
    >




  4. #4
    sbmr
    Guest

    Re: Option window in macros

    Thank you, that was what I was after.

    "Chip Pearson" wrote:

    > Try
    >
    > Dim Res As Long
    > Res = MsgBox("Are you sure?", vbYesNo, "Title")
    > If Res = vbYes Then
    > ' user clicked yes
    > Else
    > ' user clicked no
    > End If
    >
    >
    >
    > --
    > Cordially,
    > Chip Pearson
    > Microsoft MVP - Excel
    > Pearson Software Consulting, LLC
    > www.cpearson.com
    >
    > "sbmr" <[email protected]> wrote in message
    > news:[email protected]...
    > > Years ago I managed to write a macro in excel that brought up
    > > a window with
    > > a yes or no option. I have forgotton how I did that and do not
    > > have the said
    > > file anymore.
    > > What is that window called so I can look it up in the help?
    > >

    >
    >
    >


  5. #5
    sbmr
    Guest

    RE: Option window in macros

    Thanks.

    "GS" wrote:

    > Hi sbmr,
    >
    > I believe what you're looking for is: msgbox.
    >
    > Regards,
    > GS
    >
    > "sbmr" wrote:
    >
    > > Years ago I managed to write a macro in excel that brought up a window with
    > > a yes or no option. I have forgotton how I did that and do not have the said
    > > file anymore.
    > > What is that window called so I can look it up in the help?
    > >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1