+ Reply to Thread
Results 1 to 6 of 6

MsgBox

  1. #1
    Forum Contributor
    Join Date
    06-21-2006
    MS-Off Ver
    2007
    Posts
    141

    MsgBox

    I'm hoping to get some simple code to use for a worksheet. I have some cells I'm asking a user to input data into, and once the data has been input, I'd like it to trigger a message box letting them know the illustrated results are located on sheet 2. I can create the message box easy enough, but the select case language is giving me trouble.

    It's only for one worksheet in the workbook, and I would need the messagebox to pop up only when they've entered data in cells H25 and/or J17 (essentially, I understand it to be a change event, I just can't figure it out).

    Please help!
    Last edited by braydon16; 08-02-2010 at 05:55 PM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: MsgBox

    The code needs to go into the workbook change event, but in there you can just check the row and column of the Target, which is passed into the event anyway, e.g.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-25-2010
    Location
    Lisbon
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: MsgBox

    well, i probably am messing things up but perhaps something like this would work:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-09-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    315

    Re: MsgBox

    In either event (H25 and/or J17), the cell J17 needs to be entered, so you only need to code for that:

    Please Login or Register  to view this content.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: MsgBox

    Hi,

    Try

    Please Login or Register  to view this content.
    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  6. #6
    Forum Contributor
    Join Date
    06-21-2006
    MS-Off Ver
    2007
    Posts
    141

    Re: MsgBox

    Thank you!

+ 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