Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Auto: trouble with .GoTo a Bookmark in Word
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01310785
Message ID:
01311122
Vues:
18
Hi Yuri,

You know, in one way I really do not need to move the cursor as I just want to "populate" 3 positions on the document with some text at 3 different bookmarks. I guess I am used to thinking of "moving" the cursor because that is how you record a macro in Word - but it would appear that just using the range object not only might be faster but less work. It is just going to take a bit to get my head around not moving the insertion cursor.

Thanks.
Albert

>Do you need INsertAfter, or move the cursor, or both?
>You do not need to move the cursor, or select the range to modify the document content:
>
>
>with oword.activedocument.BOOKMARKs("bookmark_name").Range
>   .InsertAFter("Hello")
>ENDWITH
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform