+ Reply to Thread
Results 1 to 9 of 9

Macro message box based on cell content

  1. #1
    Registered User
    Join Date
    12-09-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    21

    Macro message box based on cell content

    Hi,
    I want to have a window popping up if the cell content of "F6" says "important" (F6 contains an if statement)
    I want the macro message box to pop up ONCE only for users to see and be informed
    the message content should be "based you the ranking, please answer cell D"

    ideally the macro applies to all rows in colum F - not only F6
    any ideas
    thanks a lot!!!!

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Macro message box based on cell content

    Just trying to clarify,

    You'd like to loop through all cells from F6 to the last row in F and display a messagebox if the cell contains important?
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Registered User
    Join Date
    12-09-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Macro message box based on cell content

    Solus,

    thanks for getting back to me... yes indeed - each row represents an independet process step and is populated at a separate time, therefore everytime when F states "important" the pop up window should appear for the user to click OK and then proceed

  4. #4
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Macro message box based on cell content

    Try:
    Please Login or Register  to view this content.

  5. #5
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Macro message box based on cell content

    In the event that they type important in differently you could try:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-09-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Macro message box based on cell content

    Solus...
    thanks but unfortunately no window pops up...

    maybe let me try to be more specific...

    F6 (until F100 for now) contains a formula which says that if the selection in a previous cell (D) is x then show imporatnt in cell F.
    Now if this is the case, the user will be required to fill out more cells and therefore I would like to have the message window pop up...

    Is there anything else that I must consider... spelling? or the range that we used...

    sorry for not being more helpful
    tanks
    laura

  7. #7
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Macro message box based on cell content

    Could you redact any private information from your spreadsheet and attach an example? It worked fine on the very limited test sheet I set up.

  8. #8
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Macro message box based on cell content

    Hi, Solus,

    really look in Column A when the formulas are in Column F?

    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  9. #9
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Macro message box based on cell content

    Good catch. I mindlessly typed that in assuming all columns would be filled if D & F were

+ 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. Macro to create folders based on content of a cell
    By CCPopsicle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-24-2013, 10:42 AM
  2. [SOLVED] Macro to insert lines based on cell content
    By MirTraynor in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-08-2012, 11:06 AM
  3. Macro to open files based on cell content
    By livinglegend629 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-16-2011, 03:41 PM
  4. Macro to cut and paste based on cell content?
    By lancekeith in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-22-2006, 12:06 PM
  5. How to change a Macro based on content of a cell
    By Alex in forum Excel General
    Replies: 3
    Last Post: 05-15-2006, 12:35 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