Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default Macro to navigate cursor

I frequently use macros to move cursor to a specific column, but haven't
worked out how to reliably set the screen so the destination column with the
cursor appears on the left hand side of the screen. Sometimes specifying a
row way off-screen to the right and coming back to the column works, but its
clumsy and unreliable. Any ideas?
Thanks
Keith
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Macro to navigate cursor

Hi Keith

This code puts D15 in the upper left side of the scrollable area and selects
E16:

Sub GoThere()
ActiveWindow.ScrollRow = 15
ActiveWindow.ScrollColumn = 4
Range("E16").Select
End Sub

Scrollable area is the spreadsheet itself unless you freeze rows/columns.

HTH. Best wishes Harald

"Kevryl" skrev i melding
...
I frequently use macros to move cursor to a specific column, but haven't
worked out how to reliably set the screen so the destination column with

the
cursor appears on the left hand side of the screen. Sometimes specifying a
row way off-screen to the right and coming back to the column works, but

its
clumsy and unreliable. Any ideas?
Thanks
Keith



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 253
Default Macro to navigate cursor

Hello,

Open VBA help and search for "Goto Method"
Regards
Jean-Yves

"Kevryl" wrote in message
...
I frequently use macros to move cursor to a specific column, but haven't
worked out how to reliably set the screen so the destination column with
the
cursor appears on the left hand side of the screen. Sometimes specifying a
row way off-screen to the right and coming back to the column works, but
its
clumsy and unreliable. Any ideas?
Thanks
Keith



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default Macro to navigate cursor

Thanks Harald! Great stuff.
Keith

"Harald Staff" wrote:

Hi Keith

This code puts D15 in the upper left side of the scrollable area and selects
E16:

Sub GoThere()
ActiveWindow.ScrollRow = 15
ActiveWindow.ScrollColumn = 4
Range("E16").Select
End Sub

Scrollable area is the spreadsheet itself unless you freeze rows/columns.

HTH. Best wishes Harald

"Kevryl" skrev i melding
...
I frequently use macros to move cursor to a specific column, but haven't
worked out how to reliably set the screen so the destination column with

the
cursor appears on the left hand side of the screen. Sometimes specifying a
row way off-screen to the right and coming back to the column works, but

its
clumsy and unreliable. Any ideas?
Thanks
Keith




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default Macro to navigate cursor

Thanks Jean, you and Harald have both been very helpful.
Keith

"Jean-Yves" wrote:

Hello,

Open VBA help and search for "Goto Method"
Regards
Jean-Yves

"Kevryl" wrote in message
...
I frequently use macros to move cursor to a specific column, but haven't
worked out how to reliably set the screen so the destination column with
the
cursor appears on the left hand side of the screen. Sometimes specifying a
row way off-screen to the right and coming back to the column works, but
its
clumsy and unreliable. Any ideas?
Thanks
Keith




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
moving the cursor in a macro Amanda Excel Discussion (Misc queries) 1 June 18th 09 02:05 AM
Navigate a worksheet when under control of a macro.... Neal Zimm Excel Programming 3 September 27th 05 01:39 PM
Navigate by macro Bob Phillips[_6_] Excel Programming 0 May 28th 04 04:39 PM
Navigate by macro Frank Kabel Excel Programming 2 May 28th 04 04:38 PM
Macro to navigate between sheets Jonsson[_28_] Excel Programming 4 May 2nd 04 05:00 PM


All times are GMT +1. The time now is 12:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"