我希望用户输入单元格范围
Dim FromRang, ToRang As Range
'Ask the user to input the cell Range in which to search for the sub strings
FromRang = Application.InputBox(Prompt:="Enter Search Range From:", Type:=8)
ToRang = Application.InputBox(Prompt:="Enter Search Range To:", Type:=8)
但这给了我一个错误:“对象变量或块变量未在 excel vba 中设置”