首页 > Excel专区 > Excel函数 >

Excel中隐藏和恢复隐藏的行,列的vba代码程序代码

Excel函数 2022-02-13 20:34:49

Excel中隐藏行,列的程序的vba代码程序

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.office9.cn/upload/20220213/syntaxeditor Macro1()
For i = 1 To 10
S1 = "B" & i
S2 = "K" & i
S3 = ":"
S4 = S1 + S3 + S2
S5 = WorksheetFunction.Count(Range(S4))
If S5 = 0 Then
Rows(i).EntireRow.Hidden = True
End If
Next i
End SubExcel中手工取消隐藏的方法手工恢复,Ctrl+a全选,"格式",行,取消隐藏Excel中取消隐藏行,列的程序的vba代码程序

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.office9.cn/upload/20220213/syntaxeditor Macro1()
For i = 1 To 10
Rows(i).EntireRow.Hidden = False
Next i
End Sub


标签: 代码取消程序隐藏excel函数

office教程网 Copyright © 2016-2020 http://www.office9.cn. Some Rights Reserved. 苏ICP备20040415号-9