Hi
I have a range of dates which I have VBA search through using a command button to find the cell that contains a specific date Im looking for - a date picked from a calendar user-form and placed in a text box. The
The format of the date in the text box is the same as the format of the range, i.e. dd-mmm (or for example 11-feb), and the code instructs VBA to search the cell value.
However this is where I am confused. On searching I can find any date but only those after the 10th of the month, for example 10th, or 17th, or 22nd. But it fails to recognise anything between 01-09. Why is this and is there any solution?
The code from the calendar to the textbox is:
and the code to search in command button is
This is a works project and was going good until this problem which has brought me to a complete standstill for the last two days. Any help would be gratefully received
Bookmarks