How to programmatically save a file to a network drive in Excel (213641)
The information in this article applies to:
- Microsoft Office Excel 2003
- Microsoft Excel 2002
- Microsoft Excel 2000
This article was previously published under Q213641
For a Microsoft Excel 97 and earlier and Microsoft Excel 98 Macintosh Edition and earlier version of this article, see 141512.
SUMMARY
In Microsoft Excel, you can save a file to any drive to which you have
write and delete privileges. In addition, you can use a Microsoft Visual
Basic for Applications macro to save the active workbook and use a variable
for the file name. You can use variables from the ActiveWorkbook.Name
property, from input box data, or from a cell reference.
NOTE: If you use the full path for the file name, Microsoft Excel will know exactly where to save the file. If the path is not given, Microsoft Excel will save the file to the currently active directory or folder.
REFERENCES
For more information about Saving Files, from the Visual Basic Editor, click the
Office Assistant, type saveas, click Search, and
then click to view "SaveAs Method."
Modification Type: | Minor | Last Reviewed: | 10/5/2006 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB213641 |
---|
|