View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
joel[_558_] joel[_558_] is offline
external usenet poster
 
Posts: 1
Default Disabling all pushbuttons


For Each sht In Sheets
For Each obj In sht.OLEObjects
ObjectType = TypeName(obj.Object)
If ObjectType = "CommandButton" Then
obj.Enabled = False
End If
Next obj
Next sht


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=170670

Microsoft Office Help