P
pareshtrivedi
I have a template file named mytemplate.dot located in "D:\my_dir" with
digitally signed macros in it which includes my company's certified
(verified by veriSign).
I am setting Macro Security setting to High in the MS word application.
If I manually create a new document file by right clicking on the
mytemplate.dot file, word issues me 'Security Warning' window to either
disable or enable the macros. It also shows the valid signor
certificate. If I open the existing word file (test.doc) located in the
same directory as template then I get the same warning window. This
works fine.
However, if I open the same word file using below command the word file
opens up without any security warning. Also, all the macros are enabled
and I can run them without any warning. In Trusted Publisher tab I
don't see my company's name. Isn't this a security risk?
Dim lword_document As Word.Document
Dim lword_app As Word.Application
Set lword_app = CreateObject("word.application")
lword_app.Visible = 1
Set lword_document = lword_app.Documents.Open("D:\my_dir\test.doc",
Visible = True)
What code do I need to write so that word works exactly the same way as
I open the word document manually?
digitally signed macros in it which includes my company's certified
(verified by veriSign).
I am setting Macro Security setting to High in the MS word application.
If I manually create a new document file by right clicking on the
mytemplate.dot file, word issues me 'Security Warning' window to either
disable or enable the macros. It also shows the valid signor
certificate. If I open the existing word file (test.doc) located in the
same directory as template then I get the same warning window. This
works fine.
However, if I open the same word file using below command the word file
opens up without any security warning. Also, all the macros are enabled
and I can run them without any warning. In Trusted Publisher tab I
don't see my company's name. Isn't this a security risk?
Dim lword_document As Word.Document
Dim lword_app As Word.Application
Set lword_app = CreateObject("word.application")
lword_app.Visible = 1
Set lword_document = lword_app.Documents.Open("D:\my_dir\test.doc",
Visible = True)
What code do I need to write so that word works exactly the same way as
I open the word document manually?