First off, I realize this posting may be a bit too much to ask. However, if some of you VBA gurus wish to challenged, please read on. It would be most appreciated.
I have a complex spreadsheet tracking an amortization schedule. For the most part everything is working fine. I just decided to make one small change. Since then I am having a problem with entering data into a cell with a dropdown. If the entry is chosen from the dropdown list all works fine. However, it does not accept a keyed-in entry. In many instances, the user will be keying in not selecting the entry from the dropdown.
In the attached spreadsheet, the dropdown is in cell K10. The problem arises when an entry is made in K9 (which is required prior to K10). If K9 is populated, then an expectable entry date can only be selected from the dropdown. I’d like the user to either select the appropriate date from the dropdown or be able to keyin an acceptable date.
As example (see attached):
Cell K9 has a Data Validation criteria set as a List (Range “=$P$33”$P$633”) with an “Error Alert” message. If an entry is made in K9 (say 1000), and the user selects Nov. 1, 2023 as the date from the dropdown list, all works great. However, if the user wishes to keyin 11-1-23, the Error Alert message is displayed. I’m confused as to why the error message is being triggered even though the entry is legitimate (i.e., same date as the dropdown).
Once an accepted Amount (K9) and accepted Date (K10) is enter, the “Additional Payment” in the Schedule below (column I) is updated.
Note, I am not a programmer so please excuse me for the sloppy coding. I have been piecing this together for some time. I’m sure it could be much cleaner and more efficient but it works.
Thanks for viewing,
Steve K.
Bookmarks