Hi, I am not an VBA expert but trying something new.
1. Below sub module works for the first statement only. The second one gives an Run-time error '438': Object doesn't support this property or method.
2. This works for a UserForm in the active project but I would like to do this to a UserForm in the Global.MPT instead
1. Below sub module works for the first statement only. The second one gives an Run-time error '438': Object doesn't support this property or method.
2. This works for a UserForm in the active project but I would like to do this to a UserForm in the Global.MPT instead
VBA Code:
Sub xxxxx()
ActiveProject.VBProject.VBComponents("UserForm1").Name = "UserFormNew"
ActiveProject.VBProject.VBComponents("UserFormNew").Caption = "New title of userform"
End Sub