Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2004

Tip: Looking for answers? Try searching our database.

Hide fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ulf Nilsson - 12 Nov 2004 09:29 GMT
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 - 12 Nov 2004 11:14 GMT
Use:

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

Signature

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

> Hi,
> I know how to hide all shapes in a document before
[quoted text clipped - 22 lines]
>
> / Ulf
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.