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

Re: Hide or delete text in header (word 2000) by Jay

Jay
Mon Aug 01 16:19:17 CDT 2005

There's no reason to select the range before you set its text -- throw away
the first line and just keep the second one.

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

m.cranbrook@gmail.com wrote:
> 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



Re: Hide or delete text in header (word 2000) by m

m
Mon Aug 01 19:01:31 CDT 2005

Thanks Jay that did it.