Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word - replace in headers
Message
De
23/10/2009 17:21:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01429439
Message ID:
01431129
Vues:
30
>>I want to automatically replace some text; the user can decide to put a placeholder in the main document, in a header, or in a footer. I didn't find an option to search (or search and replace) throughout the entire document, including headers and footers. Do I have to do two or three separate searches?
>>
>>TIA,
>>
>Hilmar,
>
>Please check Re: Replace in word header Thread #1085969 for solution.

Hi, I finally managed to do it, by saving macros and looking at the result. The reason I tarried is because I was hoping for a better solution, in this order of preference:

1) A single replace that spanned the document, all headers and footers. That was the subject of my original question.

2) Do the replace without actually selecting the header and footer. The thread you pointed to me looked like it was supposed to do just that, but I didn't manage to make it work.

3) So finally I saved the macros to actually select the header, replace, go to the next header (because the first page was different), repeat the replace, etc. I don't find this the most elegant solution, but it is one that actually works.

Thanks for your help.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform