Just in case, I will mention that another difference between VBA and VB .NET is in the fact that in .NET a variable declared inside a block of code will fall out of scope at the end of that code block. for example, your If statement. anything declared inside the If...End If will not exist after the End If.
Dave O.