Hi,
Please help,
I am trying to search for a date within a spreadsheet using the following VBA code:
dim found as range
set found = cells.find(What:="24/03/1983"
After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByColumns, _
SearchDirection:=xlNext, MatchCase:=False, _
SearchFormat:=False)
And it doesnt find the string since found contains
nothing!
how can this be since in my code the
date is surrounded by quotes making it a string
Also how can i change the code to allow for a search in
either direction using numbers or text as arguments.
Thanx in adv.
Krakyn
Please help,
I am trying to search for a date within a spreadsheet using the following VBA code:
dim found as range
set found = cells.find(What:="24/03/1983"
After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByColumns, _
SearchDirection:=xlNext, MatchCase:=False, _
SearchFormat:=False)
And it doesnt find the string since found contains
nothing!
![[surprise] [surprise] [surprise]](/data/assets/smilies/surprise.gif)
date is surrounded by quotes making it a string
Also how can i change the code to allow for a search in
either direction using numbers or text as arguments.
Thanx in adv.
Krakyn
![[afro] [afro] [afro]](/data/assets/smilies/afro.gif)