+ Reply to Thread
Results 1 to 3 of 3

Pop up a message box based on values of a range

  1. #1
    Registered User
    Join Date
    10-24-2008
    Location
    france
    Posts
    53

    Pop up a message box based on values of a range

    Hello Guys,

    I have a range of values in H23:H37 (1 for yes, 0 for no). This range basically determines if there are empty cells in the range B23:F37. Ie if in the row B23:F23 there is an empty cell, H23 will contain 0.


    I have a macro which will perform some actions which is activated by a button.

    I would like to pop up a message box if a value in the range H23:H37 is equal to 0 when the button is pressed. I would like to indicate the row or rows in which the 0 value is present so that corrections can be made by the user.

    Could you help me achieve this please?

    thanks in advance for ur help
    Last edited by ramakavin; 12-06-2008 at 10:27 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Try adding this to the start of the code

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    10-24-2008
    Location
    france
    Posts
    53

    Perfect!

    Thanks a lot Roy, this perfectly works.

    I got another question though i am not sure about which forum is the correct one to ask this question.

    I keep getting a pop up from excel

    "Privacy warning: this document contains macros, Activex controles etc..These may include personnal information that cannot be removed by the document inspector".

    I saved my file as .xslm but it this message is still pestering me..

    would u know how to turn this off?

+ 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