USER FORM CREATED AT RUNTIME 2

Hello, again

I have posted earlier my code to creating user form at runtime.

Hello,

Here is my code to create user form at runtime

Sub cbCreateUserForm()
Dim vbeditor As VBE
Set vbeditor = Application.VBE
Dim stform As VBComponent
Set 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

End Sub

Now i have one other question 

When starting first time, code is working well and the form BhBpForm was created

In Project Explorer i see just created BhBpForm

Then I delete BhBpForm from Project explorer

After deleting code above not working.

If i change name of form to create to BhBpForm1 code work again and BhBpForm1 was created.

Sub cbCreateUserForm()
Dim vbeditor As VBE
Set vbeditor = Application.VBE
Dim stform As VBComponent
Set stform = vbeditor.ActiveVBProject.VBComponents.Add(vbext_ct_MSForm) 'work create Form with standart name UserForm1, UserForm2 etc.
stform.Name = "BhBpForm1"
stform.Properties("Caption") = "BhBpCaption"
stform.Properties("BackColor") = vbRed

Rememmber - BhBpForm was deleted.


I try to create BhBpForm again with code above, but he retturn me error.

If I restart CorelDRAW i can create BhBpForm again

I think, that restarting Corel clears memory from many things.

I ask for method to reset CoreDRAW with VBA code without restarting Corel

Greetings!