+ Reply to Thread
Results 1 to 2 of 2

Message boxes

  1. #1
    JaB
    Guest

    Message boxes

    Hi there

    Does anyone know how to create pop up message boxes? Basically Id like a
    box that pops up when a user opens the spreadsheet and asks, 'Update?' with a
    'Yes' or'No' selection option.
    Ive seen it in other spreadsheets, but not sure how to do it.

    Thanks

  2. #2
    Bob Phillips
    Guest

    Re: Message boxes

    Private Sub Workbook_Open()
    Dim ans
    ans = MsgBox("Update")
    If ans = vbYes Then
    'do something
    End If
    End Sub

    'This is workbook event code.
    'To input this code, right click on the Excel icon on the worksheet
    '(or next to the File menu if you maximise your workbooks),
    'select View Code from the menu, and paste the code



    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "JaB" <JaB@discussions.microsoft.com> wrote in message
    news:71DF1F35-40D4-4EEC-955B-54CFF9CCB3E9@microsoft.com...
    > Hi there
    >
    > Does anyone know how to create pop up message boxes? Basically Id like a
    > box that pops up when a user opens the spreadsheet and asks, 'Update?'

    with a
    > 'Yes' or'No' selection option.
    > Ive seen it in other spreadsheets, but not sure how to do it.
    >
    > Thanks




+ 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