Question about Freezing Panes

menor59

Well-known Member
Joined
Oct 3, 2008
Messages
574
Office Version
  1. 2021
Platform
  1. Windows
Can i have Row A22 Frozen above and row A173 Frozen below which would leave me with Rows A23:A172 as the scrolling area...The scrolling area would be say 20 rows.

Can this be accomplished?
 
Menor,
Sorry, I thought you could do split and freeze panes at the same time. It seems you cannot.
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Menor,
Sorry, I thought you could do split and freeze panes at the same time. It seems you cannot.


Not a problem,

Is there another way to get the end result as you see in my attached picture?
 
Upvote 0
I selected that but the picture moved when i scrolled...
 
Upvote 0
Menor,
Sorry, I thought you could do split and freeze panes at the same time. It seems you cannot.


so i found this code...

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
    Dim MyPicture As Object
    Dim MyTop As Double
    Dim MyLeft As Double
    Dim BottomRightCell As Range
    '-----------------------------------------------------------
    '- bottom right cell
    With ActiveWindow.VisibleRange
        r = .Rows.Count
        c = .Columns.Count
        Set BottomRightCell = .Cells(r, c)
    End With
    '------------------------------------------------------------
    '- position picture
    Set MyPicture = ActiveSheet.Pictures(1)
    MyTop = BottomRightCell.Top - MyPicture.Height - 0
    'MyLeft = BottomRightCell.Left - MyPicture.Width - 0
    With MyPicture
        .Top = MyTop
        .Left = MyLeft
    End With
End Sub

help with improving it so the picture stays at the top row as i scroll. Right now when i scroll down i have to click a cell then the picture moves...
 
Upvote 0

Forum statistics

Threads
1,215,988
Messages
6,128,145
Members
449,426
Latest member
revK

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top