PC Review


Reply
Thread Tools Rate Thread

determine if column is frozen with vba

 
 
=?Utf-8?B?ZGs=?=
Guest
Posts: n/a
 
      5th Oct 2006
is it there a way to determine if a column is frozen using vba?

tia,
dk
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      5th Oct 2006
frozen? what does that mean?

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"dk" <(E-Mail Removed)> wrote in message
news:9C5ECC56-1F59-4689-A5A3-(E-Mail Removed)...
> is it there a way to determine if a column is frozen using vba?
>
> tia,
> dk



 
Reply With Quote
 
=?Utf-8?B?ZGs=?=
Guest
Posts: n/a
 
      5th Oct 2006


"Bob Phillips" wrote:

> frozen? what does that mean?
>
> --
> HTH
>
> Bob Phillips
>
> (replace somewhere in email address with gmail if mailing direct)
>
> "dk" <(E-Mail Removed)> wrote in message
> news:9C5ECC56-1F59-4689-A5A3-(E-Mail Removed)...
> > is it there a way to determine if a column is frozen using vba?
> >
> > tia,
> > dk


frozen panes


If ActiveWindow.Panes.Count = 1 then panes are not frozen


>
>
>

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      5th Oct 2006
And how does that relate to columns? You want if the columns are inside the
frozen area? What if part of them are?

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"dk" <(E-Mail Removed)> wrote in message
news95964C8-4CAD-447B-B9B3-(E-Mail Removed)...
>
>
> "Bob Phillips" wrote:
>
> > frozen? what does that mean?
> >
> > --
> > HTH
> >
> > Bob Phillips
> >
> > (replace somewhere in email address with gmail if mailing direct)
> >
> > "dk" <(E-Mail Removed)> wrote in message
> > news:9C5ECC56-1F59-4689-A5A3-(E-Mail Removed)...
> > > is it there a way to determine if a column is frozen using vba?
> > >
> > > tia,
> > > dk

>
> frozen panes
>
>
> If ActiveWindow.Panes.Count = 1 then panes are not frozen
>
>
> >
> >
> >



 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      6th Oct 2006
This should get you started :

Private Function ColumnInFrozenPane(TestColumn As Long, argWnd As Window) As
Boolean
Dim i As Long

ColumnInFrozenPane = False

With argWnd
If .FreezePanes = True And .Panes.Count > 1 Then
For i = 1 To .Panes.Count
If .Panes(i).ScrollColumn > 1 Then
ColumnInFrozenPane = (TestColumn < .Panes(i).ScrollColumn)
Exit Function
End If
Next
End If
End With

End Function

You can expand it to include row instead and allow for more than single
column/row.

NickHK

"dk" <(E-Mail Removed)> wrote in message
news95964C8-4CAD-447B-B9B3-(E-Mail Removed)...
>
>
> "Bob Phillips" wrote:
>
> > frozen? what does that mean?
> >
> > --
> > HTH
> >
> > Bob Phillips
> >
> > (replace somewhere in email address with gmail if mailing direct)
> >
> > "dk" <(E-Mail Removed)> wrote in message
> > news:9C5ECC56-1F59-4689-A5A3-(E-Mail Removed)...
> > > is it there a way to determine if a column is frozen using vba?
> > >
> > > tia,
> > > dk

>
> frozen panes
>
>
> If ActiveWindow.Panes.Count = 1 then panes are not frozen
>
>
> >
> >
> >



 
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
printing frozen column on each page Jeff@nospam.invalid Microsoft Excel Discussion 2 26th Aug 2011 01:22 PM
Determine a result of one column based on conditions in two column tel703 Microsoft Excel Misc 1 25th Mar 2010 05:01 PM
Frozen column in form =?Utf-8?B?RmxlbWlzaFJvZ2Vy?= Windows XP General 1 30th Oct 2006 01:08 PM
I can't type in a column in excel it's frozen =?Utf-8?B?amI=?= Microsoft Excel Worksheet Functions 1 1st Jun 2006 09:30 AM
Determine start column/ end column of Merged Cell jC! Microsoft Excel Programming 3 8th Jul 2004 12:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:49 PM.