View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
kkknie[_212_] kkknie[_212_] is offline
external usenet poster
 
Posts: 1
Default Hide shapes (buttons) before printing


You pretty much have it already. Here's the code:

Sub test()
Dim s As Shape
For Each s In ActiveSheet.Shapes
s.Visible = msoFalse
Next
End Sub

Use msoTrue to set them back to visible.



--
kkkni
-----------------------------------------------------------------------
kkknie's Profile: http://www.excelforum.com/member.php...nfo&userid=754
View this thread: http://www.excelforum.com/showthread.php?threadid=26695