PC Review


Reply
Thread Tools Rate Thread

Auto Freeze Frame

 
 
miker1999
Guest
Posts: n/a
 
      7th Feb 2004
Hi,
I would like to put in some code that would automatically freeze th
first two rows of data when the user first starts up the file. I woul
like 3 out of the 5 sheets to do this?

Here is what I thought would work:

Private Sub Freeze_Frames()
ActiveWindow.SplitRow = 2
ActiveWindow.FreezePanes = True
End Sub

But, it does not. Maybe I am putting it in the wrong place. Wher
should I put this? I put it on the sheet (right click on shee
tab>source).

Help.

PS.. Is there any code to automatically turn on the AutoFilters fo
this shared workbook

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
 
 
 
Colo
Guest
Posts: n/a
 
      7th Feb 2004
Hello miker

miker1999 wrote:
> Where should I put this? I put it on the sheet (right click o
> sheet tab>source).
>


The place was not wrong. Just call that procedure fro
Worksheet_Activate event like this.


Code
-------------------

Private Sub Worksheet_Activate()
Call Freeze_Frames
If Not AutoFilterMode Then Cells.AutoFilter
End Sub

Private Sub Freeze_Frames()
ActiveWindow.SplitRow = 2
ActiveWindow.FreezePanes = True
End Sub

-------------------


--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
miker1999
Guest
Posts: n/a
 
      7th Feb 2004
Perfect! Thanks for the lesson..
Mik

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
freeze frame kan2124 Windows XP MovieMaker 1 8th Aug 2009 04:56 AM
Freeze frame Boenerge Microsoft Excel Discussion 4 26th Nov 2008 08:05 PM
Print with freeze frame BNT1 via OfficeKB.com Microsoft Excel Misc 2 26th Jul 2007 04:42 PM
Freeze Frame & Other Questions alert Windows XP MovieMaker 4 7th May 2004 07:45 PM
Re: Freeze Frame PapaJohn Windows XP MovieMaker 0 12th Sep 2003 09:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:35 PM.