LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Boolean Question

Greetings,

I am sure missing something but just can't see it. When I run the code

If ((NewProd < "") And (NewProd < Prod)) Or (DRun <= 30) Then
More code here
End If

and NewProd = "One", Prod = "One" and DRun = 5, the If passes to the More
code here.

I had previously used:

If ((NewProd < "") And (NewProd < Prod)) Or DRun <= 30 Then

If (NewProd < "" And NewProd < Prod) Or (DRun <= 30) Then

with the same results. To get this to work I ended up using:

If NewProd < Prod Then
If (NewProd < "") Or (DRun <= 30) Then

Would someone explain the error of my ways?

Thanks in advance for your help.

Ray


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF vs Boolean Brad Excel Discussion (Misc queries) 3 September 4th 09 01:58 AM
boolean question Lisa Excel Worksheet Functions 1 September 5th 08 12:53 PM
More on Boolean Epinn New Users to Excel 7 November 28th 06 09:29 AM
SUMIF boolean? Daminc Excel Worksheet Functions 12 May 4th 06 05:21 PM
VBA Boolean Jeff Excel Discussion (Misc queries) 1 February 2nd 06 10:01 PM


All times are GMT +1. The time now is 03:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"