I wrote a VBA macro to manipulate some data in a tab with a module in my Personal Workbook. Everything works great and fast.
Now I'd like distribute this to my team, so I do my normal steps:
The code when clicking the button is WAY slower. Like 10x slower. What would be the cause of that? I tried moving the code to the actual sheet or thisworkbook, same result. I've added in screenupdating and calculation code, though this shouldn't matter since it's the same exact code as I was using in the personal workbook.
Any ideas?
Now I'd like distribute this to my team, so I do my normal steps:
- Create a macro-enabled workbook. This is completely empty.
- Add a module.
- Paste the exact code from my personal workbook to the module in the macro-enabled workbook.
- Add a button that ties to the module. Now the workbook is complete empty except for the button.
- Paste the data into the tab with the button (the same exact data I was using when running the code from my personal workbook).
- Click the button.
The code when clicking the button is WAY slower. Like 10x slower. What would be the cause of that? I tried moving the code to the actual sheet or thisworkbook, same result. I've added in screenupdating and calculation code, though this shouldn't matter since it's the same exact code as I was using in the personal workbook.
Any ideas?