endkey

J

Joel Allen

Hi,

I'm running this from my custom task to populate a Word template. This
works:

Selection.EndKey

but I want the cursor in the Word doc to go to the end of the page, so I
tried this:

Selection.EndKey Unit:=wdLine

and it gives me an error. Can someone please help me on the syntax?

Thanks, Joel
 
K

Ken Slovak - [MVP - Outlook]

There is no WdUnit enum for page that I know of, but wdLine should be an
acceptable parameter. You really should post this in a Word group, where
you're more likely to get an answer.
 

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