Frontpage macro move cursor

K

Ko35

When I insert some text on the page via a macro, with something like this:

Set myRange = ActiveDocument.selection.createRange
myRange.collapse (True)
myRange.pasteHTML ("mytext")

this text is properly inserted. However the cursor is still in front of the
inserted text. How do I move the cursor to a position after this text?
Any ideas?

Ko
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top