I have a VBA Code that allows the user to select a date on a drop down menu, and when they click the submit button it asks them if they have the correct date before proceeding. When they hit ok it executes the script and copies data from each row into each sheet according to information found in column A.
The problem that I'm having is that the operator needs to be able to pick any day of the year in order to back fill data, this spreadsheet will be rolling out in April, however the yearly data sheets show every day of the year since January 1st. When setting the date in the drop down menu the script cannot process a date more than a few days past the first available date in the other sheets.
For example:
If the yearly data sheets all start on January 1st and January 1st is the first available date, then I can enter the 1st and 2nd without issue, but if I enter in a random date from the year, for example today's date, March 27th the code fails and the coded error message appears.
Is there someone who can help me to modify the code so that it will copy the data over to whichever date is selected, regardless of which dates are empty on the yearly sheets?
Here is the entirety of the code:
Using Excel 2010Please Login or Register to view this content.
Please let me know if I need to post additional information such as Screen Shots etc.
Thank you.
Bookmarks