阅: 1406 | 回: 6
发表于2021/8/26 7:02:52
楼主

-
积分:5
-
财富值:2
-
身份:普通用户
我给你改写了点,Like后面是不能接<的,所以会报错
Sub 定位数据及区域的空值()
Dim aa As Range
For Each a In ActiveSheet.UsedRange
If Not a.Value Like "*?*" Then
If aa Is Nothing Then
Set aa = a.Cells
Else
Set aa = Union(aa, a.Cells)
End If
End If
Next
aa.Select
End Sub
我的个性签名