2017-08-05 86 views

回答

1

尝试...

Private Sub CommandButton1_Click() 
    Dim osldR As SlideRange 
    Dim oSld As Slide 
    Dim oShp As Shape 
    Set osldR = ActivePresentation.Slides.Range(Array(2, 3, 4)) 
    For Each oSld In osldR 
     For Each oShp In oSld.Shapes 
      If oShp.Name = "a" Then 
       oShp.Visible = msoFalse 
       Exit For 'if there will only be one shape named "a" on a slide 
      End If 
     Next oShp 
    Next oSld 
End Sub 

希望这有助于!

+0

它工作,谢谢! –

相关问题