D
danna21
When working on a .dot, after updating a menu option that simply
formats the selection with a style the following error was occurring
when I open the template or created a new document from the template:
"The macros in this file do not match the digital signature. Only a
macro virus would cause this..." [And it goes on to tell me to run a
virus scan]
Well, for those of you interested, I have a resolution that makes no
sense and was hoping someone may have some why it occurred and why it
was resolved.
The template is digitally signed. Like I mentioned, the only change
that consistently caused the error (performed the change numerous times
to figure out the cause) was that I remove the term "style" from
the end of the menu option. (This is applied to the menu option when
you drag and drop a style via the Tools>Customize dialog.)
So, why the error?
The way I fixed it was to go back through my code Document>open &
Document>New and one by one comment out 'til I found the line(s)
causing the problem. Ready....this is what I commented out:
Selection.style = ActiveDocument.Styles("Body Text")
Why in the world, when none of the VBA code changed (only a menu option
text displayed changed, remember?) would Word tell me that a virus
change my macro? Beats me!
So, once the code was commented out, I was able to create a new
document based on the template and open the template for modes without
the issue. I then went back to remove the comment so that the line
runs and still no error. Strange.
Thanks for your comments.
formats the selection with a style the following error was occurring
when I open the template or created a new document from the template:
"The macros in this file do not match the digital signature. Only a
macro virus would cause this..." [And it goes on to tell me to run a
virus scan]
Well, for those of you interested, I have a resolution that makes no
sense and was hoping someone may have some why it occurred and why it
was resolved.
The template is digitally signed. Like I mentioned, the only change
that consistently caused the error (performed the change numerous times
to figure out the cause) was that I remove the term "style" from
the end of the menu option. (This is applied to the menu option when
you drag and drop a style via the Tools>Customize dialog.)
So, why the error?
The way I fixed it was to go back through my code Document>open &
Document>New and one by one comment out 'til I found the line(s)
causing the problem. Ready....this is what I commented out:
Selection.style = ActiveDocument.Styles("Body Text")
Why in the world, when none of the VBA code changed (only a menu option
text displayed changed, remember?) would Word tell me that a virus
change my macro? Beats me!
So, once the code was commented out, I was able to create a new
document based on the template and open the template for modes without
the issue. I then went back to remove the comment so that the line
runs and still no error. Strange.
Thanks for your comments.