while building up a user Interface I made use of ActiveX buttons in VBA2010. I wrote the Macros first, checked them, then copied them into the ActiceX button code.
The macro then crashes at a range command of another sheet. To test it I separated the commands:
Sheets("Data").Visible = xlSheetVisible
Sheets("Data").Select
Columns("O:O").Select ' The code crashes here
As a result I get a 1004 runtime error. I found a similar topic which seems to be unsolved aswell.
Unable to Execute Macro With ActiveX Controls (Excel VBA)
Help is well appreciated. Thanks in advance!