View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Don Guillett Don Guillett is offline
external usenet poster
 
Posts: 10,124
Default Hiding/unhiding rows


Sub togglehiderows()
Rows("6:8").Hidden = Not Rows("6:8").Hidden
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Matheus" wrote in message
...
I have a calculation on E5 with its raw data in E6, E7 and E8. I would like
to have a button to allow the user to hide and unhide the data in E6 - E8
kind like a tree org. "+" and "-+ buttom.