The Repository Add-in invokes this method when the name of an MDO component object has been changed in the repository. The method is invoked for each event sink object that has been registered for component-related Repository Add-in events.
Sub ObjectRenamed( MdoObject As Object, VBObject As Object, OldName As String )
The ObjectRenamed method has these parts:
Part | Description |
MdoObject | The MDO component object that has been renamed in the repository. |
VBObject | The corresponding Visual Basic component. |
OldName | The name that this object had before it was renamed. |
Do not confuse the name of an MDO component object with the name of the file that is associated with the corresponding Visual Basic component. If the file name is changed, the ObjectChangedFileName method is invoked, not this method.