码迷,mamicode.com
首页 > 其他好文 > 详细

EXCEL中隐藏与显示分组框

时间:2015-05-14 18:27:03      阅读:257      评论:0      收藏:0      [点我收藏+]

标签:

Sub 隐藏()
Dim sh As Shape
For Each sh In ActiveSheet.Shapes
If sh.Type = msoFormControl Then
If sh.FormControlType = xlGroupBox Then sh.Visible = False
End If
Next
End Sub

Sub 显示()
Dim sh As Shape
For Each sh In ActiveSheet.Shapes
If sh.Type = msoFormControl Then
If sh.FormControlType = xlGroupBox Then sh.Visible = True
End If
Next
End Sub

  

EXCEL中隐藏与显示分组框

标签:

原文地址:http://www.cnblogs.com/kidoln/p/4503619.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!