Okay guys, I'm stymied on this one. I've been working on creating an auto-reporting tool and I'm stuck.
I have been working in a "scratchbook" (book4.xlsm) to ensure that I have proper coding before importing it into my final product.
My line of code says to run the data table through a series of filters, autosum the results and then paste them into a cell on the summary page. Then, it resets the filters and runs the data through the process again, changing the filters and the output cell destination.
In Book4.xlsm the macro works EXACTLY like it is supposed to. So, I copied the macro coding and pasted into the "reporting tool.xlsm". I included the lines to activate the "Monthly report.xls" and the correct sheet and select a cell in the data range. I even left the auto-refresh update ON so that I could see what's happening.
Now, the coding does NOT work properly. it's EXACTLy the same code from book4, but it doesnt work. It's supposed to only be auto-summing the VISIBLE cells. But now, it's returning a random number. At first I thought that it was returning the results for ALL of column N, visible and hidden, but even that isnt the case. The results for Column N when auto-summed manually are "74918.28", however the macro is returning a result of "230144.65" and I cannot ascertain where that figure is coming from. Additionally, it's returing this same value for every single filter.
I'm stuck. Please, please help!
The code is below:
******************************************
(Truncated due to length)....all the rest is the same as above...![]()
Please Login or Register to view this content.
Bookmarks