閱: 2272 | 回: 6
發(fā)表于2021/8/26 7:02:52
樓主
等級(jí):初學(xué)者-
積分:5 -
財(cái)富值:2 -
身份:普通用戶
我給你改寫(xiě)了點(diǎn),Like后面是不能接<的,所以會(huì)報(bào)錯(cuò)
Sub 定位數(shù)據(jù)及區(qū)域的空值()
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
我的個(gè)性簽名
等級(jí):傳說(shuō)級(jí)人物