Ah, thank you so much. Yes, I've now tried that and it works as expected.
In reply to Re^2: Variable Scope by DanielSpaniel in thread Variable Scope by DanielSpaniel