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
 
Top