ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Help with IF Else:IF statement (https://www.excelbanter.com/excel-programming/383312-re-help-if-else-if-statement.html)

Nile_Hef[_2_]

Help with IF Else:IF statement
 
This are two syntax errors he

Else: If cell = Null Then

You actually wanted this:

ElseIf cell = Null Then

The colon acts as a line break in VBA, and 'ElseIF' is all one word.

Regards -

Nigel


Kevin Porter

Help with IF Else:IF statement
 
That's it. Thank you. It still doesn't do what I want it too, but I think
it is my morning fuzzy logic.

Thanks again.

"Nile_Hef" wrote:

This are two syntax errors he

Else: If cell = Null Then

You actually wanted this:

ElseIf cell = Null Then

The colon acts as a line break in VBA, and 'ElseIF' is all one word.

Regards -

Nigel



All times are GMT +1. The time now is 04:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com