WD: File Sharing Prevents Macros from Deleting Folders on Mac

ID: q122996

The information in this article applies to:

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          : kberrmsg kbmacro kbnetwork macword word6 
Version           : MACINTOSH:6.0,6.0.1,6.0.1a
Platform          : MACINTOSH

Last Reviewed: November 12, 1998