Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running Excel workbook 'inbound' function

Status
Not open for further replies.

philk12

Programmer
Dec 29, 2005
20
US
The question:
When running the workbook 'inbound' function, if there's a failure in the "book = HSSF_open(file_name)" loop because a given workbook in the group doesn't exist in the path, then no 'open' works after that even though subsequent workbook(s) in the group do exist. The monitor group around the 'open' just prevents the halt, subsequent existing book(s) still fail on the open. I've tried "HSSF_end_object_group()" (in the on-error) but that fails as well. (I know the program logic is good because if I'm specific about the single workbook I want to read, it retrieves it just fine. What should I be doing after an 'open' legitimately fails? Or do I have to do an existence test in the host server before I attempt the HSSF 'open'?

The wish:
If there's a way to protect the sheet(s) of a workbook and the workbook itself (with a password) from within my creation program, I'll die a happy man.
 
I'm still not sure what application you're using to control Excel here. That would be a good piece of information.. ;-)

Regards,
Zack Barresse

Simplicity is the ultimate sophistication. What is a MS MVP? PODA
- Leonardo da Vinci
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top