Exporting and importing Visual Basic for Applications
macros
About this task
To
export the Visual Basic for Applications
macros for a module from the Visual Basic for Applications IDE:
Procedure
Select a module from the modules
tree.
From the Visual Basic
for Applications IDE,
select File > Export File.
In the Export
Files window, browse to the
correct location and enter the name of the receiving file.
Select OK to dismiss
the Export Files window.
Results
Rational® Rhapsody® also enables you to
import an existing module or form to the project.
To import Visual Basic for
Applications macros:
Procedure
From
the Visual Basic for Applications IDE,
select File > Import File. The Import Files window is displayed.
Browse to the correct location and select
the file to import.
Results
A
copy of the file is added to the project
and the original file is left intact. If you import a form or module
with the same name as an existing form or module, the new form or
module file is added with a number appended to its name.