![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 1,288
|
I have a macro with the following line :
If Cells(x, 4).Value > Cells(x, 5).Value Then The problem is that for the word "then" there must be a another condition "OR" with the text #N/B Who can inform me? Many thanks |
|
|
|
|
|
#2 | |
|
Board Regular
Join Date: Mar 2002
Posts: 1,288
|
Quote:
|
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
can you post you code im sure the VBA boys will get stuck in to it, your post is simply saying
if//////// then /// i guess you want else here but then what.....
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: Huntington Beach, CA USA
Posts: 327
|
Hi Verluc,
If [X4].Value > [X5].Value Then MsgBox" X4 is greater than X5",vbOKOnly + vbExclamation Regards, James |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|