Insertion point from VBA

P

per aage

Hi there.
Is there sombody who knows how to get the insertion point
from vba, and later repositioning the cursot at this place.

Per Aage
 
J

Jonathan West

Hi Per

At the start of your macro, include the following code

Dim rngStart as Range
Set rngStart = Selection.Range


at the end of your macro, using the following line

rngStart.Select
 

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