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