Bonjour,
j'utilise la méthode suivante pour me positionner sur un signet:
signet= "ici"
Set rrange = odoc.Goto(wdGoToBookmark, , , signet)
Ca marche en général très bien... Mais si le signet est dans une zone de
texte (menu insertion/zone de texte), il me dit que le signet n'existe
pas.
En effet, dans word, si j'ouvre le document et fais ctrl-b, le signet
présent dans la zone de texte n'est pas dans la liste.
Il apparait uniquement après avoir cliqué dans la zone de texte.
Quelqu'un pourrait-il me dire comment me positionner si le signet est
dans une zone de texte?
Merci,
Alain
Doug Robbins - Word MVP - 25 Feb 2008 09:27 GMT
Assuming that zone de texte is a textbox, using
Dim rrange As Range
Set rrange = ActiveDocument.Bookmarks("ici").Range
will set a rrange to the range of the bookmark (signet?) ici when the
bookmark is located in a textbox.
I trust that your understanding of English is at least as good as my
understanding of French.
Otherwise, you might try posting to microsoft.public.fr.word

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> Bonjour,
>
[quoted text clipped - 16 lines]
> Merci,
> Alain