seba1977ar
New Member
- Joined
- Sep 9, 2014
- Messages
- 3
Hi guys, all time fan here who is in desperate help for the first time. I've been searching for an answer all around the web with no positive outcome.
Here is my situation:
I've been using a code for quite a while that was working smoothly, but all of a sudden now stops and shows me an error 5 (invalid procedure call or argument) message.
The code looks like this:
getting the error in the .Find
Little background: I've been running it all day long searching for October '13 dates, November '13 dates until I had to look for December 1 on.
WEIRD! (at least for me)
I reran F8'ing the code for november dates to see if after getting the error the code won't work but it did work fine, but then again when I started looking Dec 1, it stopped there.
I then named the range as "fecha_de_busqueda" since maybe it had something to do with the range, but apparently it's not it.
Can you help?
THX!
______________
A6 is where the code pastes the date that it will look up, format being "dd-mmm-yyyy", same as the one in the "fecha_de_busqueda" range.
Here is my situation:
I've been using a code for quite a while that was working smoothly, but all of a sudden now stops and shows me an error 5 (invalid procedure call or argument) message.
The code looks like this:
Code:
Set WorkRange3 = Worksheets("DB").Range("fecha_de_busqueda")
With WorkRange3
Application.Goto .Find(What:=Range("a6"), After:=Worksheets("DB").Range("a9"), LookIn:=xlValues, _
LOOkAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False)
End With
Little background: I've been running it all day long searching for October '13 dates, November '13 dates until I had to look for December 1 on.
WEIRD! (at least for me)
I reran F8'ing the code for november dates to see if after getting the error the code won't work but it did work fine, but then again when I started looking Dec 1, it stopped there.
I then named the range as "fecha_de_busqueda" since maybe it had something to do with the range, but apparently it's not it.
Can you help?
THX!
______________
A6 is where the code pastes the date that it will look up, format being "dd-mmm-yyyy", same as the one in the "fecha_de_busqueda" range.
Last edited: