+ Reply to Thread
Results 1 to 3 of 3

simple "and" question

  1. #1
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    simple "and" question

    I have the following code:

    Please Login or Register  to view this content.
    For some reason code1 executes even if Range("t_P2_s").Value = 0
    I do not want it to execute unless all ranges are > 0
    What's the problem with it?

    Thanks

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi

    You've written that entirely correctly which leads me to suspect that your value in t_P2_s is not what you think it is (could it be formatting disguising its true value, or possibly a result of Excel's limited precision, in which case you might be best advised to round the result before you test it).

    Richard

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    luv2glyd,

    Please read the Forum Rules about thread titles before starting your next thread.

+ 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. Another new guy on board == question about simple charting
    By glfredrick in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 04-14-2008, 10:17 PM
  2. Simple count question
    By rodeman in forum Excel General
    Replies: 1
    Last Post: 09-05-2007, 06:28 PM
  3. Simple question - big help
    By bstaff in forum Excel General
    Replies: 2
    Last Post: 02-06-2007, 05:22 PM
  4. Simple Question, Escape Char
    By cgi_pro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-05-2006, 06:04 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