Forum Discussion
tristaanogre
12 years agoEsteemed Contributor
Perhaps I'm misunderstanding. Is the error happening when executing the OnStartTest event handler or are you getting the error when executing your other statement:
If your error happens in this UserID assignment call AND that call is happening in a different script unit than where the Dim is declared, that would be the cause then. You need to make sure that any unit of code that wants to utilize the PrivateCar variable has USEUNIT pointing to the code unit containing the Dim statement.
UserId =PrivateCar.Cells(3,1)If your error happens in this UserID assignment call AND that call is happening in a different script unit than where the Dim is declared, that would be the cause then. You need to make sure that any unit of code that wants to utilize the PrivateCar variable has USEUNIT pointing to the code unit containing the Dim statement.