K
klav
I need to insert a hyperlink in a file that will kick off a macro. What I
did was create a template (startmacro.dot) with this code:
sub autoopen()
Documents.Add Template:="mytemplate.dot"
end sub
The hyperlink simply opens the startmacro.dot, which creates a new file
basing it on the mytemplate.dot template. The "mytemplate.dot" template
contains an autonew macro which executes my code. This all works fine.
What I have been unsuccessful with is closing the original template
(startmacro.dot). Perhaps there is another way of inserting a hyperlink to
accomplish this? Any help would be appreciated. Thanks.
did was create a template (startmacro.dot) with this code:
sub autoopen()
Documents.Add Template:="mytemplate.dot"
end sub
The hyperlink simply opens the startmacro.dot, which creates a new file
basing it on the mytemplate.dot template. The "mytemplate.dot" template
contains an autonew macro which executes my code. This all works fine.
What I have been unsuccessful with is closing the original template
(startmacro.dot). Perhaps there is another way of inserting a hyperlink to
accomplish this? Any help would be appreciated. Thanks.