小弟不才,分享自行寫出的公式吧
Sub Find()
x = InputBox("請輸入數值")
Dim range1 As Range
Set range1 = Range("d2:i1000").Find(what:=x, LookIn:=xlValues, lookat:=xlWhole, searchorder:=xlRows, matchbyte:=True)
MsgBox (range1.Address)
End Sub
再利用FindNext可以繼續下一個作者: GBKEE 時間: 2015-3-30 16:01
回復 5#pegawang
當 range1 Is Nothing
MsgBox (range1.Address) 會出錯的