+ Reply to Thread
Results 1 to 4 of 4

Macros to Run based a specific cell value

  1. #1
    Registered User
    Join Date
    04-28-2014
    Location
    Reno, Nevada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Macros to Run based a specific cell value

    So I need some help.

    I have message boxes that I want to open when the value of D2 is = to different values.

    I have the message box codes written but I am unable to link these to the cell values.

    ie. If D2 = Test , messagebox 1
    If D2 = Actual, messagebox 2
    If D2 = Old, no message.

    the values from D2 are in a conditional list and the message box should open each time the value in the cell changes.

    Thank you in advance.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,906

    Re: Macros to Run based a specific cell value

    Put this worksheet event in the Sheet for which it applies.

    Open the VBE, clicking on Alt F11
    In the left window, click on the sheet where you are applying these actions
    A new right window will open. Copy the code and paste it in
    Save and close the VBE

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    04-28-2014
    Location
    Reno, Nevada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macros to Run based a specific cell value

    Alan,

    Thank you for you quick response. The value in D2 is a conditional list. I want the message to pop up anytime the value in that cell is changed from the list. The message box does not open when I change the value in the cell.

    Thoughts?

    Thank you,

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,906

    Re: Macros to Run based a specific cell value

    See attached.
    Attached Files Attached Files

+ 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. [SOLVED] Macros to Change cell values based on value of other cell
    By drawingtheline in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2013, 03:54 PM
  2. [SOLVED] Macro: Calling other macros dependant of the result of a specific cell
    By darrenkaye in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-17-2012, 11:53 AM
  3. [SOLVED] Macros imitating conditional formatting based on specific text within cell
    By schaasyd in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-15-2012, 06:30 PM
  4. Copying specific cell based on two parameters and then sorting based on one parameter
    By buntalan80 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 02:27 AM
  5. Automate Macros. Run a Macro When a Specific Cell Value Changes
    By t0m46 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2010, 04:19 AM

Tags for this Thread

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