Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Auto: trouble with .GoTo a Bookmark in Word
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01310785
Message ID:
01311122
Views:
17
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
>
Previous
Reply
Map
View

Click here to load this message in the networking platform