Hi everyone,
I have shapes in my worksheets, these shapes have been grouped, i am trying to get these groups to scroll down as the user scrolls down the worksheet.
Below is the code i am using, my problem is that it keeps bugging at line Set myGroup.
is there something wrong here that i can not see...
Thanks in advance for any help.
I have shapes in my worksheets, these shapes have been grouped, i am trying to get these groups to scroll down as the user scrolls down the worksheet.
Below is the code i am using, my problem is that it keeps bugging at line Set myGroup.
is there something wrong here that i can not see...
Thanks in advance for any help.
Code:
'Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
'Dim effectiveBottomRow As Long
'Dim myGroup As Object
'Set myGroup = ActiveSheet.Group (11): Rem adjust
'With ActiveWindow.VisibleRange
'effectiveBottomRow = .Row + .Rows.count - 2
'End With
'With myGroup
'myGroup.Top = myGroup.Top + (effectiveBottomRow - .BottomRightCell.Row) * .BottomRightCell.RowHeight
'End With
'End Sub