I am having an issue that is hard to reproduce with a workbook I created. Essentially it is an order entry system that is done through the use of userforms. Users can enter orders, and retrieve existing order entries and edit them.
Now sometimes, and I can't say for certain if it's when the file remains open and is used over an extended period of time, it locks up or gets very slow and it takes ages to open userforms or close them. Sometimes it necessitates the task manager to force close excel as it becomes unresponsive. Afterwards when you open the file again it has no issues and works just fine with no lag.
I don't know if it's a memory thing or what, but the CPU Usage shoots up when it starts locking up and goes back down when I force close excel. Is there something I can add to my VBA that would help prevent the slowing/locking up from happening? It's quite frustrating to have to tell the users to close the file every so often to avoid it occurring.
Now sometimes, and I can't say for certain if it's when the file remains open and is used over an extended period of time, it locks up or gets very slow and it takes ages to open userforms or close them. Sometimes it necessitates the task manager to force close excel as it becomes unresponsive. Afterwards when you open the file again it has no issues and works just fine with no lag.
I don't know if it's a memory thing or what, but the CPU Usage shoots up when it starts locking up and goes back down when I force close excel. Is there something I can add to my VBA that would help prevent the slowing/locking up from happening? It's quite frustrating to have to tell the users to close the file every so often to avoid it occurring.