- ·上一篇教育:excel表格怎么零开头
- ·下一篇教育:怎么制作excel表格零基础
excel表格中怎么隐藏空列
1.Excel隐藏空白列,怎么弄啊???
这个是最简单的操作请看:
假如我们有ABCDE5个单元,现在要隐藏C。
在C单元右键,找到隐藏,选择隐藏左键点击就可以了,请看效果:
C单元隐藏成功。
2.EXCEL如何隐藏空行?
Sub 隐藏空行()
Dim rag As Range, i As Integer, j As Integer
Dim a$, b$
i = 1
a$ = ""
b$ = ""
For Each rag In UsedRange
If rag.Row = i Then
a$ = a$ & rag.Value
Else
If a$ = "" Then
If b$ = "" Then
b$ = i
Else
If i <> j + 1 Then
b$ = b$ & ":" & j & "," & i
End If
End If
j = i
End If
a$ = rag.Value
i = rag.Row
End If
Next
b$ = b$ & ":" & j
Range(b$).Select
Selection.EntireRow.Hidden = True
Range("A1").Select
End Sub
评论内容只代表网友观点,与本站立场无关!
评论摘要(共 0 条,得分 0 分,平均 0 分)
