Search for month doesn't work for specific months

  • Thread starter Thread starter alexhbs
  • Start date Start date
A

alexhbs

Hello all!

I 've created a userform to search an excel database (that is
populated by another userform) that contains a date field. This field
is formatted as mmm/yyyy so I can search it by month.
All was well until out of nothing my sub can't find specific months.

It finds the related data for january, march, june, july and november,
but not any of the other months.
In order to try and debug it I've used the exact same data in the
other fields of the db changing only the date field to the desired
month.

If I use excel's own Find, everything works as it should, the months
are found just fine.

Has anyone a clue on why this could happen?

Thanks in advance for all the help you can give.

-- Alex
 
--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Not without seeing your code.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Is there any reason why XL would perform the search correctly on a set
of months and not on others?
Using the same function, with the same data, just different dates
(months)?

-- Alex

ps.: It's not that I don't want to post the code, it's because there's
a lot of it!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top