Hiding a button when hiding rows

  • Thread starter Thread starter fergusor
  • Start date Start date
F

fergusor

Hi Guys,

Can someone help me out with the following.

I've put a button on a sheet and when I hide the row that the button
sits in, the button stays visible.

Is it possible to associate the button with a cell and when the row is
hidden the button is also hidden.

Thanks,
Richard.
 
Hi,

To hide the groupling you can press Crtl + 8.

Or if you want a a macro then try this code to toggle outline.

Sub Grouping()

ActiveWindow.DisplayOutline = Not ActiveWindow.DisplayOutline

End Sub

Link shows you how to add the button

http://www.mrexcel.com/tip068.shtml


VBA Noo
 
Thanks for the tip to hide the grouping buttons, but I haven't explained
myself very well.

On the actual spreadsheet, in cell A64 I have a button that inserts a
number of rows. When I press the '-' button to hide the grouping the
button in the cell doesn't hide with, instead just moves up and appears
in a different cell.

Thanks for your help.
Richard.
 
Back
Top