R ranswert Feb 6, 2008 #1 How do I identify a range of cells that a button is in when it is clicked? Thanks
A Andy Pope Feb 7, 2008 #2 Hi, This will report cells covered by a button from the Forms toolbar. Sub Button3_Click() With ActiveSheet.Shapes(Application.Caller) MsgBox "Button is over cells " & _ .TopLeftCell.Address & ":" & _ .BottomRightCell.Address End With End Sub Cheers Andy
Hi, This will report cells covered by a button from the Forms toolbar. Sub Button3_Click() With ActiveSheet.Shapes(Application.Caller) MsgBox "Button is over cells " & _ .TopLeftCell.Address & ":" & _ .BottomRightCell.Address End With End Sub Cheers Andy
R ranswert Feb 7, 2008 #3 Thank You for the help Andy Pope said: Hi, This will report cells covered by a button from the Forms toolbar. Sub Button3_Click() With ActiveSheet.Shapes(Application.Caller) MsgBox "Button is over cells " & _ .TopLeftCell.Address & ":" & _ .BottomRightCell.Address End With End Sub Cheers Andy Click to expand...
Thank You for the help Andy Pope said: Hi, This will report cells covered by a button from the Forms toolbar. Sub Button3_Click() With ActiveSheet.Shapes(Application.Caller) MsgBox "Button is over cells " & _ .TopLeftCell.Address & ":" & _ .BottomRightCell.Address End With End Sub Cheers Andy Click to expand...