S
Simon
Hi, I'm trying to fix ths error in my Word macros. Its happeing because I'm
using an Office 2003 property that isn't supported on Office XP:-
ActiveWindow.View.ShadeEditableRanges = False
Is there any way I can prevent Office XP and earlier versions from
attempting to compile the code they don't support?
Maybe there is a better way of doing what I'm trying to achieve... I need to
protect an image (company logo) in a word template from being deleted so I
have followed advice from this forum and protected the document then added an
exception range, editable by everyone so that only the logo is protected.
Now, by default Word highlights the editable areas which causes the document
to appear broken since it's made up of text in tables with background colors.
So I came up with the above VBA code to turn the highlighting off (its in the
code that creates the new document from the template and in Document_Open()).
I realize that the protection isn't effective in Office versions before 2003
but that is a minority of users and diminishing daily. I just need to protect
the image for the vast majority of users and have the macros work for
everyone. I can't be as difficult as I'm making it, surely??!!
Thanks for making it to the end of this long post.
using an Office 2003 property that isn't supported on Office XP:-
ActiveWindow.View.ShadeEditableRanges = False
Is there any way I can prevent Office XP and earlier versions from
attempting to compile the code they don't support?
Maybe there is a better way of doing what I'm trying to achieve... I need to
protect an image (company logo) in a word template from being deleted so I
have followed advice from this forum and protected the document then added an
exception range, editable by everyone so that only the logo is protected.
Now, by default Word highlights the editable areas which causes the document
to appear broken since it's made up of text in tables with background colors.
So I came up with the above VBA code to turn the highlighting off (its in the
code that creates the new document from the template and in Document_Open()).
I realize that the protection isn't effective in Office versions before 2003
but that is a minority of users and diminishing daily. I just need to protect
the image for the vast majority of users and have the macros work for
everyone. I can't be as difficult as I'm making it, surely??!!
Thanks for making it to the end of this long post.