Prgrammatically save a file to a specific folder on a network drive

  • Thread starter Thread starter Christy
  • Start date Start date
C

Christy

In a macro, I would lke to programmatically save a file to
a specified folder on a network drive. Please advise.
 
Christy,

The command is:

ActiveWorkbook.SaveAs "PathAndFileName.xls"

HTH,
Nikos
 
Nikos
I m also looking for something similar. I was little querious to know can we still save it on the server if that server is not mapped .
 
The original thread has aged off my newsreader's cache.

But maybe you just save the workbook using the UNC path.

thisworkbook.saveas filename:="\\myserver\myshare\myfolder\myworkbook.xls"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top