endkey

Status
Not open for further replies.
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.

"Joel Allen" <joelallen123@hotmail.com> wrote in message

news:Ok5HD$MsKHA.732@TK2MSFTNGP06.phx.gbl...
> 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
>
 
Status
Not open for further replies.
Back
Top