Creating a macro in Rational Rhapsody

About this task

You can create a new macro or edit an existing macro in two ways:

Example of a Visual Basic for Applications macro:

Sub GetNameOfProject()
Dim a as Object
Set a = getProject
MsgBox a.name
End Sub

Once you have finished typing this macro, return to the Rational Rhapsody window and run the new macro through the Macros window. You see a small message box with the name of the currently loaded project.


Feedback