1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Sub Table_Investigation()
'Placement du curseur word au début du document fraichement activé
Selection.StartOf unit:=wdStory
'Recherche de la chaine de caractère contenant "Investigation summary" (c'est écrit juste au dessus du tableau mais napparaît pas sur la capture d'écran que j'ai joint)
With Selection.Find
.Execute FindText:="Investigation summary"
.Execute FindText:="Investigation summary"
End With
'Selection d'une ligne + 1 à l'occurence
Selection.MoveDown unit:=wdLine, Count:=1
'Si le curseur se trouve dans un tableau, alors on sélectionne ce dernier
If Selection.Information(wdWithInTable) Then
Selection.Tables(1).Select
'La je selectionne la 1ère cellule à partir de laquelle coller mes données
Selection.Tables(1).Cell(3, 2).Select
End Sub |
Partager