+ Reply to Thread
Results 1 to 3 of 3

Message Box

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Northumberland, England
    MS-Off Ver
    Excel 2016
    Posts
    143

    Message Box

    Hi All,

    Id like a message box to appear when I open my spreadsheet to say something like,

    "The Target for 2010-2011 have changed, please refer to the guidance"

    and no navogation within the spreadsheet can be done until the message has been accepted.

    Can anyone give me some suggestions for the code/vba.

    Much appreciated.

    B
    Last edited by singerbatfink; 05-21-2010 at 09:16 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Message Box

    hi singerbatfink
    you can paste this code in the workbook module
    Private Sub Workbook_Open()
    MsgBox "The Target for 2010-2011 have changed, please refer to the guidance"
    End Sub
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Northumberland, England
    MS-Off Ver
    Excel 2016
    Posts
    143

    Re: Message Box

    Quote Originally Posted by pike View Post
    hi singerbatfink
    you can paste this code in the workbook module
    Private Sub Workbook_Open()
    MsgBox "The Target for 2010-2011 have changed, please refer to the guidance"
    End Sub
    Spot on Pike.. it works a treat...

    Many thanks..

    B
    Last edited by singerbatfink; 05-21-2010 at 09:19 AM.

+ 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