Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Can I find out if & where "Freeze Panes" is set
From within a macro I would like to be able to determine if "Freeze Panes"
is set for a worksheet and, if so, exactly which rows/columns are frozen. Is that possible? How? Thanks!! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Can I find out if & where "Freeze Panes" is set
Hi,
Sub Macro1() ' If ActiveWindow.FreezePanes Then MsgBox "Freeze panes are on" Else MsgBox "No Freeze panes" End If MsgBox Cells(ActiveWindow.ScrollRow, _ ActiveWindow.ScrollColumn).Address End Sub Cheers Andy wrote: From within a macro I would like to be able to determine if "Freeze Panes" is set for a worksheet and, if so, exactly which rows/columns are frozen. Is that possible? How? Thanks!! -- Andy Pope, Microsoft MVP - Excel http://www.andypope.info |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Can I find out if & where "Freeze Panes" is set
This will tell you the column and row that is frozen if any.
Sub fndfrz() If ActiveWindow.FreezePanes = True Then MsgBox "Column: " & ActiveWindow.SplitColumn & ", _ Row: " & ActiveWindow.SplitRow End If End Sub "Andy Pope" wrote: Hi, Sub Macro1() ' If ActiveWindow.FreezePanes Then MsgBox "Freeze panes are on" Else MsgBox "No Freeze panes" End If MsgBox Cells(ActiveWindow.ScrollRow, _ ActiveWindow.ScrollColumn).Address End Sub Cheers Andy wrote: From within a macro I would like to be able to determine if "Freeze Panes" is set for a worksheet and, if so, exactly which rows/columns are frozen. Is that possible? How? Thanks!! -- Andy Pope, Microsoft MVP - Excel http://www.andypope.info |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Can I find out if & where "Freeze Panes" is set
P.S. These codes only tell you the window row and column positions that are
frozen, NOT necessarily the sheet row and column. "Andy Pope" wrote: Hi, Sub Macro1() ' If ActiveWindow.FreezePanes Then MsgBox "Freeze panes are on" Else MsgBox "No Freeze panes" End If MsgBox Cells(ActiveWindow.ScrollRow, _ ActiveWindow.ScrollColumn).Address End Sub Cheers Andy wrote: From within a macro I would like to be able to determine if "Freeze Panes" is set for a worksheet and, if so, exactly which rows/columns are frozen. Is that possible? How? Thanks!! -- Andy Pope, Microsoft MVP - Excel http://www.andypope.info |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Can I find out if & where "Freeze Panes" is set
I see that my code actually returns the visible Top left cell within the
frozen panes. Cheers Andy Andy Pope wrote: Hi, Sub Macro1() ' If ActiveWindow.FreezePanes Then MsgBox "Freeze panes are on" Else MsgBox "No Freeze panes" End If MsgBox Cells(ActiveWindow.ScrollRow, _ ActiveWindow.ScrollColumn).Address End Sub Cheers Andy wrote: From within a macro I would like to be able to determine if "Freeze Panes" is set for a worksheet and, if so, exactly which rows/columns are frozen. Is that possible? How? Thanks!! -- Andy Pope, Microsoft MVP - Excel http://www.andypope.info |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Multiple "Freeze Panes" one one worksheet | Setting up and Configuration of Excel | |||
Print "freeze panes" on succeeding pages? | Excel Discussion (Misc queries) | |||
I want to lock row 1 in Excel. Why is "Freeze Panes" grayed out? | Excel Discussion (Misc queries) | |||
"freeze panes" in excel '97? | New Users to Excel | |||
Excel loses "Freeze Panes" setting | Excel Discussion (Misc queries) |