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

ActiveX - Save Excel Workbook to Network

Status
Not open for further replies.

koolsamule

Programmer
Sep 3, 2009
3
GB
Hi Chaps,

I have an ActiveX Javascript function, that pulls data from an HTML table and then populates an Excel Workbook.

This works OK, but I need to save the workbook to a network path.

I have sucessfully saved it locally:

Code:
// Save the Excel Workbook
xlBook.SaveAs("C:\\TEST.XLSX");

But this does not:

Code:
// Save the Excel Workbook
xlBook.SaveAs("\\\Server\\Projects\\TEST.XLSX");
When attempting this, I get this error:
SaveAs method of Workbook class failed
Which refers to the above.

I have tried different variations, but with little sucess (sometimes the path will default to the Server's 'My Documents'/'User Shared' folder, with the filename:
ServerProjectsTEST.XLSX

Anyone know where I'm going wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top