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

Re: Hide fields by Doug

Doug
Fri Nov 12 05:14:26 CST 2004

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
"Ulf Nilsson" <anonymous@discussions.microsoft.com> wrote in message
news:592f01c4c89a$1a088020$a601280a@phx.gbl...
> 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