我应该使用哪个版本的null?

Excel不断出现一个错误消息:编译错误

对象的无效使用

If range("C13:17").Find(11) = Nothing Then 'Do nothing Else range(findeleven).Select ActiveCell.FormulaR1C1 = 1 End If 

请帮忙 :-)

顺便说一下,它是用VBA编写的

希望对你有帮助 :)

 Sub Search() Range("C13:C17").Select With Selection Set c = .Find(11, LookIn:=xlValues) If Not c Is Nothing Then Else Range("Your range").Select ActiveCell.FormulaR1C1 = 1 End If End With End Sub