You can edit legacy Reflection macros in the Visual Basic Editor. However, some Session methods and properties are no longer supported. For more information, see the Reflection VBA Guide (Help > VBA Guide).
To edit Reflection Basic scripts
- Open the Reflection Basic Editor.
- Open the Reflection Basic script that you want to edit.
- Use Application for the Reflection object name.
Code sample
- (Optional) To access information or procedures in other Reflection Basic scripts, use the $Include metacommand, the Declare statement, or the RunScript method.
Code sample
To edit a Reflection Basic macro (script):
- Open the Reflection Basic Editor.
- Open the Reflection Basic script that you want to edit.
Optional: To access information or procedures in other Reflection Basic scripts, use the $Include metacommand, the RunScript method, or the Declare statement.
Example of the $Include metacommand:
This line of code, (the comment is intended) will make functions in the common.rbs available to the .rbs file.
'$include ".\common.rbs"
Example of the RunScript method:
This line of code runs the myTestRBScript.rbs script.
Application.RunScript "myTestRBScript.rbs", ""