Hi all,

I have the following code and the selection is in a body text paragraph:

Selection.Fields.Add Range:=Selection.Range, Text:= "REF " &
parag.Range.Bookmarks(1) & " \h", PreserveFormatting:=False

yet when I run the insert the paragraph style changes to that of the
paragraph of the bookmark. I would've thought that the
Preserver formatting flag would prevent this???


Thanks,

R

Re: Bookmark uses original paragraph style by no

no
Wed Apr 26 10:28:33 CDT 2006

ah the \r switch - 'doh


<no.email@hotmail.com> wrote in message
news:ukF%23dGUaGHA.4116@TK2MSFTNGP05.phx.gbl...
> Hi all,
>
> I have the following code and the selection is in a body text paragraph:
>
> Selection.Fields.Add Range:=Selection.Range, Text:= "REF " &
> parag.Range.Bookmarks(1) & " \h", PreserveFormatting:=False
>
> yet when I run the insert the paragraph style changes to that of the
> paragraph of the bookmark. I would've thought that the
> Preserver formatting flag would prevent this???
>
>
> Thanks,
>
> R
>



Re: Bookmark uses original paragraph style by no

no
Wed Apr 26 10:31:23 CDT 2006

bugger that worked but only for paragraph number...

<no.email@hotmail.com> wrote in message
news:ukF%23dGUaGHA.4116@TK2MSFTNGP05.phx.gbl...
> Hi all,
>
> I have the following code and the selection is in a body text paragraph:
>
> Selection.Fields.Add Range:=Selection.Range, Text:= "REF " &
> parag.Range.Bookmarks(1) & " \h", PreserveFormatting:=False
>
> yet when I run the insert the paragraph style changes to that of the
> paragraph of the bookmark. I would've thought that the
> Preserver formatting flag would prevent this???
>
>
> Thanks,
>
> R
>