+ Reply to Thread
Results 1 to 4 of 4

Run Marco only if cell contains a number and is not empty

  1. #1
    Registered User
    Join Date
    03-23-2016
    Location
    Southfield, Michigan USA
    MS-Off Ver
    2007
    Posts
    27

    Run Marco only if cell contains a number and is not empty

    I want a Macro to be run only if D1 contains an actual number. I understand VBA considers an empty cell to be numeric.

    Any example solution code for this problem?

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Run Marco only if cell contains a number and is not empty

    Try this
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Registered User
    Join Date
    03-23-2016
    Location
    Southfield, Michigan USA
    MS-Off Ver
    2007
    Posts
    27

    Re: Run Marco only if cell contains a number and is not empty

    That was it! Thanks!

    Rep Added

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Run Marco only if cell contains a number and is not empty

    You're welcome
    Thanks for the feedback and for rep points

+ 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. Replies: 10
    Last Post: 09-26-2015, 08:26 PM
  2. Replies: 0
    Last Post: 03-25-2015, 07:11 PM
  3. [SOLVED] If cell string does not contain a number make cell empty
    By capson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2014, 08:32 PM
  4. [SOLVED] How to determine if a number formatted cell is empty and not 0
    By sabrefan1970 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-21-2014, 06:20 PM
  5. If cell contains number, past entire row into the next empty row on new sheet
    By ProAsh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2012, 05:04 AM
  6. [SOLVED] How to count a cell with a number or letter as 1 or an empty cell as 0
    By garrett.grillo in forum Excel General
    Replies: 4
    Last Post: 03-05-2012, 09:44 AM
  7. Formula to use number in cell to left & ignore any empty cells
    By joya in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-13-2007, 12:52 PM

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