Hide fields

U

Ulf Nilsson

Hi,
I know how to hide all shapes in a document before
printing:
With ActiveDocument
iNum = 1
Do Until iNum = .Shapes.Count + 1
.Shapes(iNum).Visible = msoFalse
iNum = iNum + 1
Loop
iNum = 1
End With

But if I try to use the same method to hide all fields in
the document, there is no such thing as:

.Fields(iNum). Visible = msoFalse

The field I want to hide is:
{ MACROBUTTON NoMacro [Click here to type your text] }

and I don't think is nice to show that field on the print
out.

Any clue would be very appreciated.

/ Ulf
 
D

Doug Robbins

Use:

ActiveDocument.Fields(inum).Code.Font.Color = wdColorWhite


--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP
 

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