Hi all,
First, I'd like to thank this forum of basically helping me learn VBA, without any programming experience, and without asking questions. basically the wealth the forum has of existing questions and solutions are enough probably to solve all issues.
Yet i can's solve this one by myself
I have "written" a code, that filters a range based on combobox values found in another sheet, then copies the result and does some basic calculations.
the code is run when clicking a cell (Report in G1):
This is the code from the Report sheet (stored in a sheet):
The code works! yet not everytime! sometimes it doesn't apply the filters and copies the whole table. at first this wasnt an issue, as the data were small, but now the data table has expanded to the point that copying the whole data takes a lot of time and make Excel hangs.Please Login or Register to view this content.
when it doesnt work, I have a Clear results VBA code that clears the pasted table, Clear (Clear , G2), after which i click report again and hope that it works
The autofilter picks up values from two comboboxes, found in Report sheet, the entries in both combo boxes are entered via two macros, called when the Report sheet is activated (above, in red):
This is the code for the Report (stored in a module):
I tried stepping into/debugging the code, when i do that, autofilters work all the time.Please Login or Register to view this content.
I'd appreciate any help here, using Excel 2007, PC, fully updated.
Thanks
Ahmed
Bookmarks