Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hide fields

2 views
Skip to first unread message

Ulf Nilsson

unread,
Nov 12, 2004, 4:29:26 AM11/12/04
to
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

Doug Robbins

unread,
Nov 12, 2004, 6:14:26 AM11/12/04
to
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" <anon...@discussions.microsoft.com> wrote in message
news:592f01c4c89a$1a088020$a601...@phx.gbl...

0 new messages