+ Reply to Thread
Results 1 to 2 of 2

Worksheet change event code to display message box based on active cell offset content

  1. #1
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Worksheet change event code to display message box based on active cell offset content

    I am trying to use the following Worksheet_Change event code to display a message box when the user types data in a G cell (within the range), and if the F cell on the row below contains "LAST ROW", but its not working:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Worksheet change event code to display message box based on active cell offset content

    will this help....it seem to work on the data set I created....ALSO, LAST ROW must be exactly LAST ROW because LAST ROW is not the same as Last Row....you can "wrap" the Rng.Offset(0,-1).value in a UCASE function so no matter how it's in the cell it will convert it to upper case....HTH

    Please Login or Register  to view this content.
    EDIT: In your next post you might want to explain the problem a little more than "it doesn't work"....because that could mean a lot of things....have a great day
    Last edited by judgeh59; 03-12-2014 at 02:54 PM. Reason: JUST A THOUGHT
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Worksheet Change Event based on value of a cell
    By ron2k_1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-26-2014, 01:01 PM
  2. Worksheet event change with offset for different worksheet
    By scooby99 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-11-2011, 02:51 PM
  3. Display a message when worksheet is active
    By julvaz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-05-2007, 05:20 PM
  4. Replies: 5
    Last Post: 06-23-2005, 06:05 PM
  5. Change Event - see code in message
    By bforster1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-14-2005, 10:08 AM

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