View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ron de Bruin Ron de Bruin is offline
external usenet poster
 
Posts: 11,123
Default Sendkeys "{pgdn}" in Excel 2003/2007

Hi Steve

Try this

ActiveWindow.LargeScroll Down:=1
Cells(ActiveWindow.ScrollRow, ActiveWindow.ScrollColumn).Select




--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Steve" wrote in message ...
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?