我的代碼如下:VBA,具有一定的價值轉到電池(類型:日期)
Sub Find_First()
Dim FindString As String
Dim Rng As Range
FindString = Range("A1")
If Trim(FindString) <> "" Then
With Sheets("Kalendarz").Range("A5:LY5")
Set Rng = .Find(What:=FindString, _
After:=.Cells(.Cells.Count), _
LookIn:=xlValues, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not Rng Is Nothing Then
Application.Goto Rng, True
Else
MsgBox "Nothing found"
End If
End With
End If
End Sub
,但它不與日期格式,任何建議工作?
更多細節:在A1單元格,我將進入一個日期,在第5行我每天在2016年名單我想(運行宏後)去細胞與細胞A1日期。
[見本](http://www.ozgrid.com/VBA/find-dates.htm)。你的代碼適用於我的標準Excel日期格式(MM/DD/YYYY),所以這可能是由於你的具體日期格式。 – ARich