Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2004

Tip: Looking for answers? Try searching our database.

Show form created during run time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mwsterley - 14 Dec 2004 21:01 GMT
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!!!
msdickey - 14 Dec 2004 21:19 GMT
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

> Ok, I've created a form using the Designer.  The object the new form is set
> to is called newfrmtemp as shown below.  
[quoted text clipped - 7 lines]
>
> Thanks in Advance!!!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.