I just write this test code. Sometimes it is correct the first time I run it. Sometimes it can select the cell I specified, but will shows the error: Object Required! But it always results in error when I try to run it the second time and so on and so forth. VBE always say "variable not set or something". I actually already initiate Pr when the workbook is open.
Does anyone meet this kind of error before and know how to solve this problem?
Thank you.
Yours sincerely,
lolo^-^
Does anyone meet this kind of error before and know how to solve this problem?
Thank you.
Code:
Sub test()
Pr.Range("N59").Activate.Select
End Sub
Yours sincerely,
lolo^-^
Last edited: