The information in this article applies to:
SYMPTOMSWhen you are recording a Visual Basic, Applications Edition, macro and you choose Open or Save As from the File menu and change the active drive, the macro recorder may incorrectly record the drive change as a directory change. When the macro is replayed, it produces an error message:
WORKAROUNDTo work around this problem, you must edit the macro. Select the module sheet in which the macro was recorded and change the following macro code
to:
Microsoft provides examples of Visual Basic procedures 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 Visual Basic procedure is provided 'as is' and
Microsoft does not guarantee that it can be used in all situations.
Microsoft does not support modifications of this procedure to suit customer
requirements for a particular purpose.
STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. REFERENCESFor more information about the ChDrive and ChDir statements, choose the Search button in Visual Basic Help and type: chdriveor: chdir Additional query words: 5.00c switch network floppy path
Keywords : |
Last Reviewed: September 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |