Sendkeys "{pgdn}" in Excel 2003/2007

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

In Excel 2003 I am using...
Sendkeys "{pgdn}", True
....to actvate a cell one screen down. It is activated but not selected, but
that is fine for my purposes. However in Excel 2007 this does not activate
the cell one screen down, so my macro doesn't work.

I tried ActiveWindow.LargeScroll Down = 1 in both Excel 2003 and 2007 and it
doesn't activate the cell one screen down.

How can I activate a cell one screen down in both 2003 and 2007, accounting
for the fact that the application may be used by different people on
different computers with different screen resolutions?
 
Hi Steve

Try this

ActiveWindow.LargeScroll Down:=1
Cells(ActiveWindow.ScrollRow, ActiveWindow.ScrollColumn).Select
 
When I start in a particular rowl and do a pgdn, I want to determine which
row I am actually end up in. Ron's suggestion gives me that.
 

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

Back
Top