WD: File Sharing Prevents Macros from Deleting Folders on Mac

Last reviewed: February 5, 1998
Article ID: Q122996
The information in this article applies to:
  • Microsoft Word for the Macintosh, version 6.0

SYMPTOMS

If you run a macro to delete a folder while File Sharing is enabled, you may receive the following error:

   WordBasic err=102
   Command Failed

You are not able to delete the folder. (To locate the File Sharing option, see the "Workaround" section later in this article.)

For example, the following macro does not allow you to delete a folder called "Test" (without the quotation marks) when File Sharing is enabled.

   Sub MAIN
      rmdir "Test"
   End Sum

STATUS

Microsoft has confirmed this to be a problem in Microsoft Word for the Macintosh, version 6.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

WORKAROUND

Disable file sharing before you run the macro. To do this, follow these steps:

  1. Open the System Folder.

  2. Open the Control Panels folder.

  3. Open Sharing Setup.

  4. Under File Sharing, click Stop to disable file sharing.


Additional query words: directory directories copy cut remove protected
protect lock locked prevent macro
Keywords : macword word6 kberrmsg kbmacro kbnetwork
Version : MACINTOSH:6.0,6.0.1,6.0.1a
Platform : MACINTOSH
Issue type : kbtshoot


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.