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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check if file is open before sending the data

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
CA
Hi

I export some data into the excel spreadsheet...so what I want to do is to check it the file is open before I do my transfer

Please suggest.

Thanks
 
Hi there.

I recently had this problem myself. I found this to work:

Workbooks.Open Filename:= abc.xls
If ActiveWorkbook.ReadOnly = True

Hope this helps.

Cheers

KathyD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top