Kraakelars
New Member
- Joined
- Feb 5, 2019
- Messages
- 3
Hello.
I am new to VBA and I'm currently working on a project with a workbook for various data analysis.
I paste data exported from another program into "Sheet 1", where I have a command button to sort and clean the data for further analysis.
In "Sheet 2" I have a number of buttons for various analysis.
It mostly works as planned, but I still have an annoying issue I can't seem to figure out; When I am finished with my analysis on one data-set and ready to move onto another set, I run a script that clears and hides the used sheets, and I paste a new data-set into "Sheet 1". After the data is pasted I am unable to press the button to sort the data. While clicking the button a duplicate button shows up underneath the original one, and the script is not ran.
If I enable developer mode and run the code from there or saves and reopen the workbook after pasting, the code executes flawlessly. Could there perhaps be a problem with the cache after pasting new data?
Thanks in advance.
I am new to VBA and I'm currently working on a project with a workbook for various data analysis.
I paste data exported from another program into "Sheet 1", where I have a command button to sort and clean the data for further analysis.
In "Sheet 2" I have a number of buttons for various analysis.
It mostly works as planned, but I still have an annoying issue I can't seem to figure out; When I am finished with my analysis on one data-set and ready to move onto another set, I run a script that clears and hides the used sheets, and I paste a new data-set into "Sheet 1". After the data is pasted I am unable to press the button to sort the data. While clicking the button a duplicate button shows up underneath the original one, and the script is not ran.
If I enable developer mode and run the code from there or saves and reopen the workbook after pasting, the code executes flawlessly. Could there perhaps be a problem with the cache after pasting new data?
Thanks in advance.