Hiding a button when hiding rows

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.
 
V

VBA Noob

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
 
F

fergusor

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top