FD = Application.InputBox("請輸入日期", "日期搜尋")
If FD = False Then
Exit Sub
Else
For Row = 1 To 10
For col = 1 To 10
If (InStr(1, Cells(Row, col), FD)) Then
Range(Cells(Row, col), Cells(Row, col)).Select
GoTo found
End If
Next col
Next Row
MsgBox ("Not Found")
End If
found:
End Sub
[attach]28167[/attach]作者: 蒼雪 時間: 2017-12-27 19:18