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 / August 2005

Tip: Looking for answers? Try searching our database.

Hide or delete text in header (word 2000)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
m.cranbrook@gmail.com - 01 Aug 2005 21:05 GMT
Anyone have a pointer as to how I can delete all text in a word 2000
header?

I tried this within a for each and while it works, it also seems to
make the doc always open in Normal mode. The docs usually open in
preview mode. Keep normal mode no matter what. Strange.

              hdrHeader.Range.Select
              hdrHeader.Range.Text = ""

Then I've tried setting the text to white so that it doesn't show:

              hdrHeader.Range.Font.Color = wdColorWhite

But that only works on some machines.

thanks
Jay Freedman - 01 Aug 2005 22:19 GMT
There's no reason to select the range before you set its text -- throw away
the first line and just keep the second one.

Signature

Regards,
Jay Freedman
Microsoft Word MVP          FAQ: http://word.mvps.org

> Anyone have a pointer as to how I can delete all text in a word 2000
> header?
[quoted text clipped - 13 lines]
>
> thanks
m.cranbrook@gmail.com - 02 Aug 2005 01:01 GMT
Thanks Jay that did it.
 
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.