endkey

  • Thread starter Thread starter Joel Allen
  • Start date Start date
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
 
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.
 
Back
Top