Freeze Pane Macro

  • Thread starter Thread starter simplymidori
  • Start date Start date
S

simplymidori

Is there a macro that can freeze pane after the first row in all active
sheets except for worksheet "Tracker".

Any help would be greatly appreciated. I tried selecting ALL worksheets
except for tracker... Did freeze pane and it only applied to the first tab.
Is this normal?
 
Sub freeze()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
If ws.Name <> "Tracker" Then
ws.Activate
ActiveSheet.Range("B2").Select
ActiveWindow.FreezePanes = True
End If
Next ws
End Sub


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Unable to freeze panes 16
Saving freeze pane worksheet 2
Freeze Panes? 1
freeze and split at the same time? 1
Macro Help 1
Freeze top 2 rows - how 3
Freeze Worksheet Tabs Excel 2000 1
Freeze Pane Saving 10

Back
Top