Sub Sample3()
Dim FoundCell As Range
Set FoundCell = Range("A:A").Find(What:="2010/1/24", LookIn:=xlValues)
If FoundCell Is Nothing Then
MsgBox "見つかりません"
Else
MsgBox FoundCell.Offset(0, 1)
End If
End Sub
Sub Sample3()
Dim FoundCell As Range
Set FoundCell = Range("A:A").Find(What:="2010/1/24", LookIn:=xlValues)
If FoundCell Is Nothing Then
MsgBox "見つかりません"
Else
MsgBox FoundCell.Offset(0, 1)
End If
End Sub
Sub Sample3()
Dim FoundCell As Range
Set FoundCell = Range("A:A").Find(What:="平成22年1月24日(日曜日)", LookIn:=xlValues)
If FoundCell Is Nothing Then
MsgBox "見つかりません"
Else
MsgBox FoundCell.Offset(0, 1)
End If
End Sub
Sub Sample5()
Dim FoundCell As Range
Set FoundCell = Range("A:A").Find(What:=Format(Now(), "yyyy/mm/dd"), LookIn:=xlValues)
If FoundCell Is Nothing Then
MsgBox "見つかりません"
Else
MsgBox FoundCell.Offset(0, 1)
End If
End Sub