The information in this article applies to:
SYMPTOMSIn Microsoft Excel, when you use the FileCopy statement in a Visual Basic for Applications macro, you may receive the following error message:
CAUSEThis problem occurs if the source file you want to copy is open when you try to run the macro. WORKAROUNDYou can avoid this problem by using the SaveCopyAs method. If you use the SaveCopyAs method, you can save a copy of the source workbook to a file without modifying the open workbook in memory. Visual Basic Code SampleMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals 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 needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:http://www.microsoft.com/support/supportnet/overview/overview.aspTo help you work around this problem, use Visual Basic for Applications code similar to the following example:
Additional query words: 5.00 5.00c 8.00 97
Keywords : kberrmsg kbprg kbdta kbdtacode KbVBA xlwin |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |