If Statement With Multiple Lines

Yokhen picture Yokhen · Nov 29, 2011 · Viewed 88.7k times · Source

I have an if statement with multiple conditions. I cannot see them all in a single window view. Is there a way to separate them on different lines or do they have to be written all in one line?

Answer

Cylindric picture Cylindric · Nov 29, 2011

The VBA line-continuation character is an underscore _

if ( _
    (something) _
    or (somethingelse) _
)