INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

ActiveX - Save Excel Workbook to Network

ActiveX - Save Excel Workbook to Network

(OP)
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:

Quote:

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:

Quote:

ServerProjectsTEST.XLSX

Anyone know where I'm going wrong?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close