Show form created during run time

M

mwsterley

Ok, I've created a form using the Designer. The object the new form is set
to is called newfrmtemp as shown below.

Set newFrmTemp = ActiveDocument.VBProject.VBComponents.Add(vbext_ct_MSForm)

I need to be able to show this form but unless I assign it a name and show
it that way I can't get the stupid form to show. I need to be able to show
the form by the object I assigned it to and not the name. Please help. I
would think this would be obvious but I haven't found the answer anywhere.

Thanks in Advance!!!
 
M

msdickey

Nevermind. I was viewing some posts in another area to see if I could help
someone else while waiting for someone to help me. I came across a
completely different problem where they had the answer to my question. All I
can say is Karma!

Here's the answer in case someone else has the same issue.

VBA.UserForms.Add(TempForm.Name).Show
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top