View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
VBA Noob VBA Noob is offline
external usenet poster
 
Posts: 1
Default Hiding a button when hiding rows


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 Noob


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=569986