controlling display of hidden text and formatting marks

J

jay

We have Word 03 under XP pro. Various macros and stuff loaded by the
organization, I don't know if they're affecting this issue or not.

I have a doc with lots of includetext fields, and conditional page
breaks so that each new included file starts on an odd page.
I've created a macro that does that just fine, by updating all fields
then repaginating, then updating the first conditional, then
repaginating, etc...

I want to turn display of hidden text off before running everything
else, to make sure that it doesn't affect pagination.

The example code I've seen isn't working for me. For example, the
following

Sub ToggleHidden()
With ActiveWindow.View
.ShowHiddenText = Not .ShowHiddenText
End With
end sub
or just

ActiveWindow.View.ShowHiddenText = False

doesn't do anything here.
Any suggestions?
 
S

Stefan Blom

You will have to turn off the display of ALL formatting marks as well:

ActiveWindow.View.ShowAll = False
ActiveWindow.View.ShowHiddenText = False

The end result of this is that you will only see those specific nonprinting marks that has set to be displayed.

Stefan Blom
Microsoft Word MVP



________________________________
"jay" wrote in message
We have Word 03 under XP pro. Various macros and stuff loaded by the
organization, I don't know if they're affecting this issue or not.

I have a doc with lots of includetext fields, and conditional page
breaks so that each new included file starts on an odd page.
I've created a macro that does that just fine, by updating all fields
then repaginating, then updating the first conditional, then
repaginating, etc...

I want to turn display of hidden text off before running everything
else, to make sure that it doesn't affect pagination.

The example code I've seen isn't working for me. For example, the
following

Sub ToggleHidden()
With ActiveWindow.View
.ShowHiddenText = Not .ShowHiddenText
End With
end sub
or just

ActiveWindow.View.ShowHiddenText = False

doesn't do anything here.
Any suggestions?
 
J

jay

You will have to turn off the display of ALL formatting marks as well:

ActiveWindow.View.ShowAll = False
ActiveWindow.View.ShowHiddenText = False

The end result of this is that you will only see those specific nonprinting marks that has set to be displayed.

Stefan Blom
Microsoft Word MVP

perfect - thanks!
 
S

Stefan Blom

You are welcome.

Stefan Blom
Microsoft Word MVP



________________________________
"jay" wrote in message
You will have to turn off the display of ALL formatting marks as well:

ActiveWindow.View.ShowAll = False
ActiveWindow.View.ShowHiddenText = False

The end result of this is that you will only see those specific nonprinting marks that has set to be displayed.

Stefan Blom
Microsoft Word MVP

perfect - thanks!
 

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