Recherche

Voici un exemple de macro pour la section 1:

Sub pied_page()
   Dim MonTexte As String
   MonTexte = "<Remplacez ceci par votre texte>"
   Selection.HeaderFooter.Range.Text = MonTexte
   ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).Range.Text = MonTexte
End Sub

 

Pour ajouter ce texte dans toutes les sections du document :

Sub pied_page()
'macro écrite par m@rina
   Dim MyText As String
   montexte = "<Remplacez ceci par votre texte>"
   For Each sect In ActiveDocument.Sections
   sect.Footers(wdHeaderFooterPrimary).Range.Text = montexte
   Next sect
End Sub

Statistiques

France 75,6% France
Canada 8,1% Canada
États-Unis d'Amérique 5,0% États-Unis d'Amérique

Total:

60

Pays
018272092
Aujourd'hui: 19
Hier: 335
Cette semaine: 354
Semaine dernière: 804
Ce mois: 354