Manually adding an end of page command

C

Chance Fate

Hiya. I have some documents where what I am doing is using a macro to find
every instance of the text "!!!" go to the end of that line, then add other
text.

I'd like to be able to do it in the Find and Replace box because it would
make things much easier for me. I can make it find !!! and add a paragraph
return (^p) so I want to know if there is a similar command for going to the
end of a line.

Any one who could tell me how this could be done would be my hero for a long
time.

Thanks.


Thanks.
 
D

Doug Robbins

Use:

Selection.MoveEnd Unit:=wdLine
Selection.Collapse wdCollapseEnd
Selection.MoveLeft Unit:=wdCharacter, Count:=1


--
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
 

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