I'm trying to launch a Word template from a web page, but can not figure out how to do that. When the template launch I need a macro to start runing. It it starts using AutoNew og the web application runs the macro do not matter.
I have tryed:
Set objWord = CreateObject("Word.Application")
objWord.Visible = true
objWord.Documents.Open "D:\Mine documenter\JOBB\stab\ordrers\operasjonsorders.dot"
objWord.UserControl = true
This however open the template for editing, not as a template. My initial impuls was using objWord.Documents.New .... but that dont work.
I have two other problems with this as well
1) When word starts it dont get focus. This will confuse the users.
2) If Word is open with no documents open the code starts another session of Word insted of opening the template in the session that is already started. This will also confuse the users.
Hope someone is able to help. I have not good knollege in programing, so I nead a code that I more or less is able to copy and paste.