Jean-Guy
Thu Apr 07 18:21:21 CDT 2005
Greg Maxey was telling us:
Greg Maxey nous racontait que :
> JGM,
>
> That is what I wanted to do, but when collapsed the field and tried to
> select it I got an error. The only way I could get the field was to
> get it and the pm.
Don't "select" it. Use the range object.
Since you created it, you know which paragraph it is, right?
Set the range to the paragraph with the field, move the end by -1, cut,
delete the ¶.
Does that work?
>
> --
> Greg Maxey/Word MVP
> See:
>
http://gregmaxey.mvps.org/word_tips.htm
> For some helpful tips using Word.
>
> Jean-Guy Marcil wrote:
>> Greg was telling us:
>> Greg nous racontait que :
>>
>>> JGM,
>>>
>>> You need to ask the OP that. She is the one that wanted it that way
>>> :-)
>>
>> Right, missed that!
>> Strange, no?
>>
>>> However since you are "nit picking" ;-). Maybe you can help with
>>> this. When I cut the field code from main text (unlike Dave Rado's
>>> code) it includes the paragraph mark. When I paste in the footer it
>>> results in two pms in the footer hence the code to remove the last
>>> one. I couldn't figure out how to cut my code (less the pm) from
>>> the main text?
>>
>> Select the field without the ¶, cut it, then delete the ¶. Would that
>> work?
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site:
http://www.word.mvps.org