<method 'Cells' of Object' _worksheet 'failed>

Smee

Registered User.
Local time
Today, 06:27
Joined
Dec 16, 2003
Messages
69
Hey all


I keep getting this error

:-
<method 'Cells' of Object' _worksheet' failed>

on this line

:-
Code:
If xlSheet.Cells(DataEnd + 1, 3) = "" Then

I have several lines of code like the one above in the module and the program seems to randomly pick which one causes the error on each run.

Any help much appreciated.

Thanks
 
Sorry - it was my own stupid fault.

It was part of an excel opening/importing thing. I was closing the excel window, and then going back to Access to finish the program. Because I had closed down the Excel window I got the above error.

Thanks
 

Users who are viewing this thread

Back
Top Bottom