JohnCHolmes
Technical User
I'm grateful for the Selection.Resize solution to the thread "Help with Excel macro recording and absolute addresses" (BTW, has anybody ever gotten Tek-Tips search to work?!).
I have just successfully tried reducing the current selection by 1 row, using
Selection.Resize(Selection.Rows.Count - 1, Selection.Columns.Count).Select
But being a REAL non OOP C programmer, I should be concerned with side effects. That means, is the order of evaluation guaranteed here, so that the "pre-resized" counts are used, not the "pre-resized" ones?
Moreover, does anyone know enough about Excel internals to comment definitively on side effects and order of evaluation?
How about on IF statements - are both conditions evaluated if the first is true? This would be valuable to know for optimization (any dinosaurs remember that term? Well, it still matters at times). I sometimes have huge hairy mother IF conditions like
IF( ISNA(LOOOONG statement w/ slow statement w/ slow
TIA
I have just successfully tried reducing the current selection by 1 row, using
Selection.Resize(Selection.Rows.Count - 1, Selection.Columns.Count).Select
But being a REAL non OOP C programmer, I should be concerned with side effects. That means, is the order of evaluation guaranteed here, so that the "pre-resized" counts are used, not the "pre-resized" ones?
Moreover, does anyone know enough about Excel internals to comment definitively on side effects and order of evaluation?
How about on IF statements - are both conditions evaluated if the first is true? This would be valuable to know for optimization (any dinosaurs remember that term? Well, it still matters at times). I sometimes have huge hairy mother IF conditions like
IF( ISNA(LOOOONG statement w/ slow statement w/ slow
TIA