Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Modification de champs de fusion en masse

1 réponse
Avatar
sygale
Bonjour, j'ai 1500 documents word =E0 modifier. Tous ont la m=EAme
condition

si(( champfusion ch1 =3D 'COCO' ) "TOTO" "TATA")
si(( champfusion ch1 =3D 'CECE' ) "TITI" "TUTU")

on me demande de la modifier en ajoutant un test
si(( champfusion ch1 =3D 'COCO' ) "TOTO" "TATA")
si(( champfusion ch1 =3D 'CECE' ) "TITI" "TUTU")
si(( champfusion ch1 =3D 'CICI' ) "TETE" "TDTD")

Personne aurait une astuce pour automatiser cette tache, je ne souhaite
pas ouvrir 1500 fois word et modifier la condition =E0 ma main !!!

Merci d'avance

1 réponse

Avatar
Circé
Bonjour sygale,

La solution : la batchmacro magique d'anacoluthe !!
Tu enregistres une macro pour un document avec un recherche remplace.

Ensuite tu lances la batchmacro magique d'anacoluthe, ta macro
s'exécutera sur tes 1500 documents (avec ouverture, enregistrement, et
fermeture).

Mais où trouve-ton cette batchmacro magique d'anacoluthe ?.. Dans la
faq bien sûr !!
http://faqword.free.fr/download.php?lng=fr&pgs6

Circé
http://faqword.free.fr

sygale a pensé très fort :
Bonjour, j'ai 1500 documents word à modifier. Tous ont la même
condition

si(( champfusion ch1 = 'COCO' ) "TOTO" "TATA")
si(( champfusion ch1 = 'CECE' ) "TITI" "TUTU")

on me demande de la modifier en ajoutant un test
si(( champfusion ch1 = 'COCO' ) "TOTO" "TATA")
si(( champfusion ch1 = 'CECE' ) "TITI" "TUTU")
si(( champfusion ch1 = 'CICI' ) "TETE" "TDTD")

Personne aurait une astuce pour automatiser cette tache, je ne souhaite
pas ouvrir 1500 fois word et modifier la condition à ma main !!!

Merci d'avance