Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2008

Tip: Looking for answers? Try searching our database.

se positionner sur un signet placé dans une zone de     texte

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alain Bourgeois - 24 Feb 2008 16:04 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.