Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default panes frozen, set visible part of screen

A navigation/scrolling/display question...

In a worksheet, I used Window | Freeze Panes at cell B6 to freeze the
headings (the first 5 rows and 1 column). Normally, column B would be
displayed after column A. If you scroll to the right a ways, thre
won't be room for column B, so column C will appears next to column A.
If you keep scrolling, column D will be after column A. And so on.
How can I tell Excel which column I want to be displayed next to column
A (using VBA)?

I thought I could just select a cell WAY to the right, then select a
cell in the column I wanted to be displayed right after column A, but
this doesn't work. For example, if I select cell Z6, then cell F6,
column B (not F) is displayed right after column A.

(For background, I'm testing my code using breakpoints, and the VBE
always obscures part of the worksheet, sometimes the part that is being
worked on, and so I keep having to Alt-Tab, scroll, then Alt-Tab back,
which after a while is starting to become a waste of time.)

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default panes frozen, set visible part of screen

ActiveWindow.Scollcolumn = 4

--
Regards,
Tom Ogilvy


wrote in message
oups.com...
A navigation/scrolling/display question...

In a worksheet, I used Window | Freeze Panes at cell B6 to freeze the
headings (the first 5 rows and 1 column). Normally, column B would be
displayed after column A. If you scroll to the right a ways, thre
won't be room for column B, so column C will appears next to column A.
If you keep scrolling, column D will be after column A. And so on.
How can I tell Excel which column I want to be displayed next to column
A (using VBA)?

I thought I could just select a cell WAY to the right, then select a
cell in the column I wanted to be displayed right after column A, but
this doesn't work. For example, if I select cell Z6, then cell F6,
column B (not F) is displayed right after column A.

(For background, I'm testing my code using breakpoints, and the VBE
always obscures part of the worksheet, sometimes the part that is being
worked on, and so I keep having to Alt-Tab, scroll, then Alt-Tab back,
which after a while is starting to become a waste of time.)



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default panes frozen, set visible part of screen

Ah, so simple. It must be great to be a guru. Thanks.

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
Print Frozen Panes? CyberSockeye Excel Discussion (Misc queries) 2 April 23rd 08 10:23 PM
frozen panes jmack Excel Discussion (Misc queries) 2 May 11th 07 09:00 AM
Third left part of the screen is frozen [email protected] Excel Discussion (Misc queries) 0 March 13th 07 01:14 PM
How do I Hide frozen panes when printing? Stargiddy Excel Worksheet Functions 0 December 20th 05 06:10 PM
How do i use multiple splits or frozen panes? Pat Excel Discussion (Misc queries) 2 November 14th 05 09:52 PM


All times are GMT +1. The time now is 03:47 PM.

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

About Us

"It's about Microsoft Excel"