How do I activate specific worksheets when importing from Excel

Tags:
Lotus Notes
Microsoft Excel
OLE objects
I have a script in Lotus Notes that imports data from a excel spreadsheet. I want to be able to always activate a specfic sheet every time the script runs. Currently I am using this method and it directs to the last saved(active) sheet. Set xlsSheet = xlsWorkBook.ActiveSheet I tired this method but got a Lotus Notes error 213. Set xlsSheet = xlsWorkBook.Worksheets(1) What method should I use? Thanks, Steve

Answer Wiki

Thanks. We'll let you know when a new response is added.

What about using the name of the sheet in quotes like :
Set xlsShet = xlsWorkBook.Worksheets(“Book”)

Bucktop

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following