Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default how do i freeze panes so they appear in all the worksheet tabs


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default how do i freeze panes so they appear in all the worksheet tabs

It's one of those things that works on the window. So you have to select each
of the sheets and set the freeze panes individually.

daveg wrote:

--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default how do i freeze panes so they appear in all the worksheet tabs

Hi

Freeze Panes is a Worksheet attribute, not a Workbook attribute, so you
would need to set it up for each sheet individually.
You cannot Group sheets and apply it, it has to be carried out sheet by
sheet.

You could use the following macro if you have a lot of sheets in your
Workbook, and this will loop through all sheets setting the freeze pane
for the Top row and Left column by selecting cell B2. Change this value
if you want freeze panes in a different position.

Sub FreezePanes()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Activate
Range("B2").Select
ActiveWindow.FreezePanes = True
Next
End Sub

You can copy the code and paste it into your Visual Basic Editor (VBE)
in a Standard Module located in your file.

To do this,

Alt + F11 (open VBE)
Ctrl + R (open Project Explorer)
Select the file name on the left
Insert Module
Paste code in Module

To run the macro, ToolsMacrosMacroclick on FreezePanesRun

For more help on inserting code into workbooks, David McRitchie has lots
of useful help on his site at
http://www.mvps.org/dmcritchie/excel/install.htm
http://www.mvps.org/dmcritchie/excel/getstarted.htm

--
Regards

Roger Govier


"daveg" wrote in message
...



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
Align Worksheet & Freeze Panes Adams SC[_2_] Excel Discussion (Misc queries) 1 May 5th 07 12:00 AM
Can I have multiple freeze panes in one worksheet? Melody Excel Worksheet Functions 1 January 29th 06 01:29 PM
How do I freeze panes in different pages on the same worksheet? UT Excel Discussion (Misc queries) 1 January 25th 06 03:36 PM
freeze the worksheet panes tagi1977 Excel Discussion (Misc queries) 1 November 15th 05 12:59 AM
Trying to freeze panes. line down and through middle of worksheet. Sandy63 Excel Worksheet Functions 3 September 12th 05 01:40 PM


All times are GMT +1. The time now is 04:23 PM.

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"