I put up a post about creating an add.subtract button associated macro that would toggle adding in values if the date and dept names matched up. The post was solved and can be seen here:
http://www.excelforum.com/excel-prog...led-macro.html
However, when I copy the code TigerAvatar provided into the REAL workbook, I keep getting a 'subscript out of range '9' error.
The code is here with the error producing part bolded:
However, I just don't see why it's doing that b/c in the dummy workbook Tiger created, he coded it the same way and called the sheet he referenced earlier 'datasheet' and it won't let me do it in the real workbook. I would post the real workbook, however, there is some sensitive data. But if needed I will try and recreate another dummy workbook more representative of the real thing.Please Login or Register to view this content.
The other issue is that I am not sure even if the error is corrected it will fix the issue b/c I've found ways just by googling to try and fix the issue, but when I run the code, no values change as they are supposed to yet when I go into break mode in the VBE, it seems like its giving me sensible values. I'm getting really frustrated b/c I've worked on this for nearly a week trying to figure it out myself with no luck.
Thanks.
HP RodNuclear
Bookmarks