What is causing “Automation error Unspecified error” on Worksheet_Activate?

前端 未结 9 2652
庸人自扰
庸人自扰 2020-12-15 00:32

I have a worksheet named \"Dates\" (object name is A_Dates) that needs to be calculated when it is activated (It may be worth noting that this is in my Personal macro workbo

9条回答
  •  醉梦人生
    2020-12-15 00:58

    We ran into the same problem, but with a twist - we have several people all using the same macros successfully, but one is having the "Automation Error" "Unspecified Error" problem. The other answer helped me identify that the problem might be due to the "Microsoft ProgressBar Control". (Thank you very much)

    But instead of removing the form, I unregistered and registered the MSCOMCTL.OCX on the user's PC that was having problems and he's back in business again. I wish I knew what caused the registration of the control to go south - this is not the first time I've had to track down problems with this control.

    To unregister and register the control:

    Use an “Elevated command prompt” (command prompt run as an administrator), issue the following commands:

     Regsvr32 /u c:\windows\SysWOW64\MSCOMCTL.OCX
    
     Regsvr32 c:\windows\SysWOW64\MSCOMCTL.OCX
    

    NOTE: the /u unregisters the ocx

提交回复
热议问题