OFF98: Cannot Export Modules, Class Modules, or UserForms (181198)
The information in this article applies to:
- Microsoft Excel 98 Macintosh Edition
- Microsoft Word 98 Macintosh Edition
- Microsoft PowerPoint 98 Macintosh Edition
- Microsoft Office 98 Macintosh Edition
This article was previously published under Q181198 SYMPTOMS
In the programs listed at the beginning of this article, it is not possible
to export modules, class modules, or UserForms from the Visual Basic
Editor.
WORKAROUND
To "export" your Visual Basic for Applications code:
- In the Visual Basic Editor select the code to export making sure to
select the Sub <RoutineName()> and End Sub lines.
- On the Edit menu click Copy.
- In Simple Text or in a Word document, on the Edit menu click Paste.
- Save the file.
Note: If saving from Word:
- On the File menu click Save As.
- In the Save File as Type listbox select Text Only.
- Select a folder for the file location.
- Click OK.
To "import" the code saved when using the steps in this article for
exporting:
- In Simple Text or in a Word document, open the file you saved as text
that contains the Visual Basic for Applications code to import.
- On the Edit menu click Select All.
- On the Edit menu click Copy.
- In the Visual Basic Editor of the application you want to place the
Visual Basic for Applications commands, click in the code window.
- On the Edit menu click Paste.
STATUS
This behavior is by design of the Visual Basic Editor.
Modification Type: | Major | Last Reviewed: | 11/24/2003 |
---|
Keywords: | kbdtacode kbnofix kbprb kbProgramming KB181198 |
---|
|