- On the File menu, you click Save As, and then you type a UNC path (such as \\server\share) in the
File name box to resave the file back to its original file name and location.
- You programmatically save the file back to its original file name and location by using a UNC path (such as \\server\share).
How to obtain the latest service packTo resolve this problem, obtain the latest service pack for Microsoft Office 2003. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
How to obtain the hotfixThis issue is fixed in the Excel 2003 hotfix package February 29, 2004. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
After you install this hotfix, follow the steps that are listed in the "More Information" section of this article to set the SupportUNCMappedDriveSaveAs registry key and to activate the hotfix.
Fix it for meTo enable the hotfix automatically, click the Fix this problem link. Then, click Run in the File Download dialog box and follow the steps in this wizard.
Note this wizard may be in English only; however, the automatic fix also works for other language versions of Windows.
Note If you are not on the computer that has the problem, you can save the automatic fix to a flash drive or to a CD, and then you can run it on the computer that has the problem.
Now go to the "Did this fix the problem?" section.
Let me fix it myselfImportant This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
To enable this hotfix, follow these steps:
- Quit Excel 2003.
- Click Start, click Run, type regedit, and then click OK.
- Locate and then click to select the following registry key: HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Excel\Options
- After you select the key that is specified in step 3, point to New on the Edit menu, and then click DWORD Value.
- Type SupportUNCMappedDriveSaveAs, and then press ENTER.
- Right-click SupportUNCMappedDriveSaveAs, and then click Modify.
- In the Value data box, type 1, and then click OK.
- On the File menu, click Exit to quit Registry Editor.
Did this fix the problem?Check whether the problem is fixed. If the problem is fixed, you are finished with this article. If the problem is not fixed, you can contact support.
- On the File menu, click
Note Do not click Save As on the
File menu to resave the file back to its original file name and location by using a UNC location.
- Use the following code in your program.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
ActiveWorkbook.SaveAs ActiveWorkbook.Path & "\filename.xls"
ID do Artigo: 835234 - Última Revisão: 9 de out de 2011 - Revisão: 1