Hello,
Here is my code to create user form at runtime
Sub cbCreateUserForm()Dim vbeditor As VBESet vbeditor = Application.VBEDim stform As VBComponentSet stform = vbeditor.ActiveVBProject.VBComponents.Add(vbext_ct_MSForm) 'work create Form with standart name UserForm1, UserForm2 etc.stform.Name = "BhBpForm"stform.Properties("Caption") = "BhBpCaption"stform.Properties("BackColor") = vbRed
BhBpForm.Show 'not work
End Sub
My question:How to Show the form created at runtime?Greetings!