Avveerkar,
What you need is the macro below. Put it in the sheet module.
No need to freeze panes. When you have scrolled and the original Command
Button is out of sight, another one will appear in the upper left corner of
the visible part of your worksheet when you click on any visible cell.
I got this macro from one of the very helpful people in this NG; I am happy
to pass it on.
HTH
Jack Sons
The Netherlands
---------------------------------------------------------------------------------
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.DisplayCommentIndicator = xlCommentIndicatorOnly
If ActiveCell.Column > 16 Then
Dim myShape As Shape
Set myShape = Me.Shapes("historie") '<== change the text between "" into
the name of your Command Button
With Me.Cells(1, ActiveWindow.ScrollColumn)
myShape.Top = 30 '.Top
myShape.Left = .Left
End With
End If
End Sub