Hi guys,
I have built a user form that enables product search, I have Googled and found a simple enough form and apply like for like to my sheet. The problem is, it runs very very slow on my workbook. Initially, my thought was the number of products in the stock list, so I mirrored the product table into the sample file. It makes no real difference in terms of speed for the sample file to return the results instantly (257 rows of products) but mine is still extremely slow!
Below is the original code from the sample file which runs lightning speed even without any of the disabling event, screen updating etc.
This is my code![]()
Please Login or Register to view this content.
How much slower is based on how many results it returns. So if I search for a product that is unique, the loop takes around 0.64 sec, if I search keywords that returns 5 results, the loop will take 3.27 seconds. Compare to the template I have downloaded, which only takes less than a second regardless of how many results returned. I know my worksheet is bigger compared to the sample excel file but as I have disabled all events screen updating and formula updates, why it take so long to run that piece of code. Your help is greatly appreciated!![]()
Please Login or Register to view this content.
Bookmarks