Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default Adding OR conditions to IF-Then statement

Not getting the syntax right on this.....

Trying to capture results of either 0 or if the textbox is left
blank.There is an Else statement after all this, but that part is ok.

If TextBox6 < 1 Or "" Then

This line highlights when the macro is run. I tried putting () in the
statement, but obviously still don't have it right.

Thanks,
J.O.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Adding OR conditions to IF-Then statement

If textbox6.value=0 or textbox6.value="" then

Alternatively:

IF application.or(textbox6.value=0,textbox6.value="") then

"excelnut1954" wrote:

Not getting the syntax right on this.....

Trying to capture results of either 0 or if the textbox is left
blank.There is an Else statement after all this, but that part is ok.

If TextBox6 < 1 Or "" Then

This line highlights when the macro is run. I tried putting () in the
statement, but obviously still don't have it right.

Thanks,
J.O.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default Adding OR conditions to IF-Then statement

Thanks Toppers!
So simple, yet so elusive.
J.O.

Reply
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 Statement On Two Conditions RoadKill Excel Worksheet Functions 5 July 28th 08 06:57 PM
Conditions with IF statement Jaydubs Excel Discussion (Misc queries) 2 June 26th 06 05:45 PM
why can i use 3 conditions in SQL statement only? Tarek Excel Programming 2 August 17th 05 07:28 AM
If then statement with two true conditions Don Guillett[_4_] Excel Programming 0 October 16th 04 12:01 AM
3 conditions if else statement. maxifire[_5_] Excel Programming 2 January 9th 04 12:43 PM


All times are GMT +1. The time now is 09:45 PM.

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"