+ Reply to Thread
Results 1 to 4 of 4

Message box that pops up if values in array are <=0

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Message box that pops up if values in array are <=0

    Hi,

    I have an array of values ("D4:D46") within a particular worksheet ("Countdown"), whose value depends on a formula and will update daily. If any of these values in the array are less than or equal to zero (<= 0), I would like a message box to appear reading, "Updates are available."

    I would like this message box to only appear once each time the Excel file is opened.

    Any help would be greatly appreciated.

    Thank you.
    Last edited by emoandy05; 06-13-2012 at 09:59 AM.

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Message box that pops up if values in array are <=0

    Hi,

    Try this

    Please Login or Register  to view this content.
    The code goes into the thisWorkbook code module
    Please take time to read the forum rules

  3. #3
    Registered User
    Join Date
    06-11-2012
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Message box that pops up if values in array are <=0

    Hi, thanks for the fast response.

    When I change the ref to match my sheet, do I just replace the (1) with ("name of my sheet")?

    Also, to paste the code in the thisWorkbook module, can that be done by right clicking on the sheet tab, clicking view code, and then pasting it in there?

    Thanks for the help. I'm new to vba.

  4. #4
    Registered User
    Join Date
    08-24-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Message box that pops up if values in array are <=0

    Hi There

    This looks like it will solve my problems too, but dont understand how to change the (Sheet(1)) bit to my sheet name "Current Week". Anyone able to help?

    Many thanks

    Ta

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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