Dear All,
I have the below data with me
PCP |
Start Date |
End Date |
12347 |
1/1/2013 |
--/--/---- |
12346 |
8/1/2012 |
12/31/2012 |
12347 |
7/1/2011 |
7/30/2012 |
12348 |
1/1/2011 |
6/30/2011 |
I want to check below validations:
1. 12346 is my PCP, my Request Date is 8/1/2012, I have to search this in below data using array.
If this is matched any where, then I want to store the above values of this. Ex: I need the 12345 1/1/2013 --/--/----
Then I will Pass my values & stored values to a function one by one.
2. 12347 is my pcp, my Request Date is 7/1/2011, in this case My PCP value is matching for First and third record.
but I want the latest date which is 1/1/2013, then I will pass this value to a function
I would request you to help me in writing the code for this in VBA
Regards,
Raj