Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default Scrolling a split screen with VBA

Excel XP & Win XP
My screen is split with a horizontal split line so that I have an upper and
lower panels or panes.
In manual operation, my mouse scroll wheel scrolls the upper panel only,
regardless of what I do.
Question: How can I scroll (with the mouse scroll wheel only) either panel?

With VBA, how can I address the panel of my choice so that I can scroll that
panel (position a specific cell where I want it)? I know how to position
the cell, but I don't know how to do it in the lower panel. The following
code positions the cell in the upper panel regardless of what pane I put in
the code, 1 or 3:
ActiveWindow.Panes(3).Activate
With ActiveWindow
.ScrollRow = 5
.ScrollColumn = 5
End With
Thanks for your time. Otto


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Scrolling a split screen with VBA

I can't say about the mouse wheel, but

Sub ABC()
With ActiveWindow.Panes(1)
.ScrollRow = 10
.ScrollColumn = 5
End With
With ActiveWindow.Panes(2)
.ScrollRow = 5
.ScrollColumn = 5
End With
End Sub

for VBA.

I had one horizontal split line (upper and lower panels), so I didn't have
but two panes.

--
Regards,
Tom Ogilvy

"Otto Moehrbach" wrote in message
...
Excel XP & Win XP
My screen is split with a horizontal split line so that I have an upper
and lower panels or panes.
In manual operation, my mouse scroll wheel scrolls the upper panel only,
regardless of what I do.
Question: How can I scroll (with the mouse scroll wheel only) either
panel?

With VBA, how can I address the panel of my choice so that I can scroll
that panel (position a specific cell where I want it)? I know how to
position the cell, but I don't know how to do it in the lower panel. The
following code positions the cell in the upper panel regardless of what
pane I put in the code, 1 or 3:
ActiveWindow.Panes(3).Activate
With ActiveWindow
.ScrollRow = 5
.ScrollColumn = 5
End With
Thanks for your time. Otto



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default Scrolling a split screen with VBA

Thanks Tom. Otto
"Tom Ogilvy" wrote in message
...
I can't say about the mouse wheel, but

Sub ABC()
With ActiveWindow.Panes(1)
.ScrollRow = 10
.ScrollColumn = 5
End With
With ActiveWindow.Panes(2)
.ScrollRow = 5
.ScrollColumn = 5
End With
End Sub

for VBA.

I had one horizontal split line (upper and lower panels), so I didn't have
but two panes.

--
Regards,
Tom Ogilvy

"Otto Moehrbach" wrote in message
...
Excel XP & Win XP
My screen is split with a horizontal split line so that I have an upper
and lower panels or panes.
In manual operation, my mouse scroll wheel scrolls the upper panel only,
regardless of what I do.
Question: How can I scroll (with the mouse scroll wheel only) either
panel?

With VBA, how can I address the panel of my choice so that I can scroll
that panel (position a specific cell where I want it)? I know how to
position the cell, but I don't know how to do it in the lower panel. The
following code positions the cell in the upper panel regardless of what
pane I put in the code, 1 or 3:
ActiveWindow.Panes(3).Activate
With ActiveWindow
.ScrollRow = 5
.ScrollColumn = 5
End With
Thanks for your time. Otto





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
How do I lock a screen to prevent scrolling? Roger Excel Discussion (Misc queries) 6 March 2nd 09 04:33 PM
Scrolling one pane only in a vertically split worksheet ODMV Excel Discussion (Misc queries) 4 April 3rd 08 02:50 AM
Slower scrolling when selecting rows more than a screen full. Stewart Excel Discussion (Misc queries) 3 November 7th 06 11:58 PM
How do I keep a text box on the screen when scrolling in excel? Paulm Excel Discussion (Misc queries) 3 July 27th 06 03:37 PM
How do I keep a text box on the screen when scrolling? Paulm Excel Discussion (Misc queries) 1 July 27th 06 01:37 PM


All times are GMT +1. The time now is 08:50 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"