title: How Do I Tell If VBA ActiveX is disabled on Windows 10?
body: <p>I have written an Excel VBA for a UserForm that has a button that calls CommonDialog.ShowColor.</p>
  
  <p>On my developer system there are no issues, on our networked systems ActiveX is disabled due to security concerns.</p>
  
  <p>I can live with the error warnings on initial loading of the Excel Workbook, what I want to avoid is having the VBA Editor come up when a user clicks the button to show the Color Dialog.</p>
  
  <p>I've tried On Error Goto within the button_click event but that does not work.</p>
  
  <p>Is there a way to test, from within VBA, if ActiveX is disabled and then disable the button?</p>
  
  <p>Thanks</p>