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 / April 2007

Tip: Looking for answers? Try searching our database.

Userform opens another document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Noemi - 04 Apr 2007 11:36 GMT
Hi
I have a template which opens a userform on opening.

When a cmdbutton is clicked on the userform then a saved dot (which has
bookmarks saved) opens however I am not sure how to open the dot as a doc.

Documents.Open FileName:="""Sdfsdf sdf sdf sdf sdf.dot"""

also,
once the dot has been opened the code is still running which means I cannot
do anything with the document, how do I end the code from the userform once
the required document is opened.

Thanks
Noemi
papou - 04 Apr 2007 14:02 GMT
Hello Noemi
To create a new document based on a specified template:
Documents.Add Template:="FullPathToTemplate\TemplateName.dot"

To close Userform  :
UserForm1.Hide
Unload Userform1
To stop macro running:
Exit Sub

HTH
Cordially
Pascal

> Hi
> I have a template which opens a userform on opening.
[quoted text clipped - 13 lines]
> Thanks
> Noemi
 
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.