I am not the most experienced with vba so forgive me... I am currently working on some code that automates and captures data from an Omicron Program. This involves one active-x command button that once clicked commences the entire code.
The command button works and the code executes exactly how I want it to, but... Once I close and reopen excel I get the error
"Can't exit design mode because Control
CommandButton1
can not be created."
A little odd considering it was working moments before. If I copy the work sheets and code to a new work book then everything begins to work again... until I close and reopen excel.
From a quick google search I haven't found a successful solution. I did try the following recommended steps:
- Close all Excel documents
- Open a blank document
- Excel options > Trust center settings>macro settings>Select{Disable all macros with notifications}
Active X settings >
Select either:
Disable all controls without notifications Prompt me before enabling all controls with minimal restrictions Apply all settings and close.
Open the affected file and check allow the prompt to enable macros if required.
Found: https://superuser.com/questions/862168/cant-exit-design-mode-because-control-xxxx-can-not-be-created
This did not help.