place cursor at the previous position

F

FotoArt

hello everyone

the function I use moves cursor to the begining of the document which is
about 70-8- pages long.
When the processing is done I want the cursor to get back to the position
where it was before the processing began.

I have put Selection.Information(wdHorizontalPositionRelativeToPage) in a
variable but do not know how to use it to move cursor to that position.
any help will be appreciated

thanx
ahmed
 
D

Doug Robbins - Word MVP

It would help if you show use the function that you are using. However set
a .Range object to the Selection at the beginning of the code in your
function before it does anything else and at the end of it, use code to
select that Range.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
E

Ed

You can also create a bookmark at the 'begin point' and when all is done, go
"back" to the bookmark using "ActiveDocument.Bookmarks(bkname).Select". You
can also set a variable "StartPoint = Selection.Start" and when all is done,
return to StartPoint by "Selection.Start = StartPoint".
 

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