Grey highlighting and brackets in text

E

EKEC

Hi,

I've been setting up a Word 2003 document as a technical document template.
The document was previously set up to lock every time a save was made
(someone else was working on it before me).

The problem is that after saving, all text would be highlighted yellow.
After unprotecting the document, all text changes from being highlighted
yellow to grey. Some text has been highlighted blue instead of grey for no
apparent reason.

The text in question is not a field. The brackets in the text ("[") are not
bookmarks, although they look similar to the "I" of a bookmark.

Here's a screen:
http://img188.imageshack.us/img188/1715/screenimt.jpg

Here's the code that locks (all locking / unlocking code is now commented
out):

'ActiveDocument.Protect Password:="me", NoReset:=False, type:= _
' wdAllowOnlyReading, UseIRM:=False, EnforceStyleLock:=True

Any help in getting rid of this grey highlighting and brackets would be
greatly appreciated.
 
D

Doug Robbins - Word MVP

Maybe my eyesight, but I cannot see any brackets in the screen shot.

Maybe you should post all of the code in the template so we can see what
else is going on, or send me a copy of the template and I will take a look
at it.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
E

EKEC

Unfortunately I can't really give you the template for security reasons, but
I can give you portions of code.

http://www.sendspace.com/file/mkr7mw

In the screenshot I posted previously, you can see a grey right square
bracket "]" near the bottom center of the page (I believe it's on the last
line highlighted blue.

Thanks for the help

Doug Robbins - Word MVP said:
Maybe my eyesight, but I cannot see any brackets in the screen shot.

Maybe you should post all of the code in the template so we can see what
else is going on, or send me a copy of the template and I will take a look
at it.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
EKEC said:
Hi,

I've been setting up a Word 2003 document as a technical document
template.
The document was previously set up to lock every time a save was made
(someone else was working on it before me).

The problem is that after saving, all text would be highlighted yellow.
After unprotecting the document, all text changes from being highlighted
yellow to grey. Some text has been highlighted blue instead of grey for no
apparent reason.

The text in question is not a field. The brackets in the text ("[") are
not
bookmarks, although they look similar to the "I" of a bookmark.

Here's a screen:
http://img188.imageshack.us/img188/1715/screenimt.jpg

Here's the code that locks (all locking / unlocking code is now commented
out):

'ActiveDocument.Protect Password:="me", NoReset:=False, type:= _
' wdAllowOnlyReading, UseIRM:=False, EnforceStyleLock:=True

Any help in getting rid of this grey highlighting and brackets would be
greatly appreciated.
 
E

EKEC

Nevermind, I found out the problem.

When the document protected itself, it highlights all the text that you can
edit. When I commented out all the code that does this, it never set the
highlighting back. All I had to do was unselect some options in the 'protect
document' dialog.

Thanks

EKEC said:
Unfortunately I can't really give you the template for security reasons, but
I can give you portions of code.

http://www.sendspace.com/file/mkr7mw

In the screenshot I posted previously, you can see a grey right square
bracket "]" near the bottom center of the page (I believe it's on the last
line highlighted blue.

Thanks for the help

Doug Robbins - Word MVP said:
Maybe my eyesight, but I cannot see any brackets in the screen shot.

Maybe you should post all of the code in the template so we can see what
else is going on, or send me a copy of the template and I will take a look
at it.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
EKEC said:
Hi,

I've been setting up a Word 2003 document as a technical document
template.
The document was previously set up to lock every time a save was made
(someone else was working on it before me).

The problem is that after saving, all text would be highlighted yellow.
After unprotecting the document, all text changes from being highlighted
yellow to grey. Some text has been highlighted blue instead of grey for no
apparent reason.

The text in question is not a field. The brackets in the text ("[") are
not
bookmarks, although they look similar to the "I" of a bookmark.

Here's a screen:
http://img188.imageshack.us/img188/1715/screenimt.jpg

Here's the code that locks (all locking / unlocking code is now commented
out):

'ActiveDocument.Protect Password:="me", NoReset:=False, type:= _
' wdAllowOnlyReading, UseIRM:=False, EnforceStyleLock:=True

Any help in getting rid of this grey highlighting and brackets would be
greatly appreciated.
 
D

Doug Robbins - Word MVP

It sounds like the shading of formfields was turned on.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
EKEC said:
Nevermind, I found out the problem.

When the document protected itself, it highlights all the text that you
can
edit. When I commented out all the code that does this, it never set the
highlighting back. All I had to do was unselect some options in the
'protect
document' dialog.

Thanks

EKEC said:
Unfortunately I can't really give you the template for security reasons,
but
I can give you portions of code.

http://www.sendspace.com/file/mkr7mw

In the screenshot I posted previously, you can see a grey right square
bracket "]" near the bottom center of the page (I believe it's on the
last
line highlighted blue.

Thanks for the help

Doug Robbins - Word MVP said:
Maybe my eyesight, but I cannot see any brackets in the screen shot.

Maybe you should post all of the code in the template so we can see
what
else is going on, or send me a copy of the template and I will take a
look
at it.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
Hi,

I've been setting up a Word 2003 document as a technical document
template.
The document was previously set up to lock every time a save was made
(someone else was working on it before me).

The problem is that after saving, all text would be highlighted
yellow.
After unprotecting the document, all text changes from being
highlighted
yellow to grey. Some text has been highlighted blue instead of grey
for no
apparent reason.

The text in question is not a field. The brackets in the text ("[")
are
not
bookmarks, although they look similar to the "I" of a bookmark.

Here's a screen:
http://img188.imageshack.us/img188/1715/screenimt.jpg

Here's the code that locks (all locking / unlocking code is now
commented
out):

'ActiveDocument.Protect Password:="me", NoReset:=False, type:=
_
' wdAllowOnlyReading, UseIRM:=False, EnforceStyleLock:=True

Any help in getting rid of this grey highlighting and brackets would
be
greatly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top