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

  1. Select a module from the modules tree.
  2. From the Visual Basic for Applications IDE, select File > Export File.
  3. In the Export Files window, browse to the correct location and enter the name of the receiving file.
  4. 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

  1. From the Visual Basic for Applications IDE, select File > Import File. The Import Files window is displayed.
  2. 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.


Feedback