【发布时间】:2015-12-04 04:54:19
【问题描述】:
当它到达 Cells.Find 时会出现运行时错误“91” “对象变量或未设置块变量”。
Sub find_highlight()
w = "12:00:00 AM"
Cells.Find(What:=(w), After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False).Activate
Range("B:B").Select
With Selection.Interior
.ColorIndex = 6
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
End With
End Sub
【问题讨论】: