problem description
when using Excel’s Power View component, the error message is: Activate method of OLEObject class failed or Activate method of class OLEObject is invalid
problem cause
this is because Flash, Silverlight, and Shockwave controls are disabled by default in the Windows version of Office. In this way, most users will not be affected, but we will have problems when we use some high-end office professional functions, such as
- click the embedded Flash movie during the PowerPoint slide show without any reaction although this has been used before.
- power View in Excel does not work again (because it USES Silverlight). You may see an error message indicating “failed activation of OLEObject class methods “.
solution
since we have found the problem, then the solution is clear, we can activate the office disabled controls, how to do it?Activation control on Windows is through the modification of the value of the registry to achieve, for computer small white to modify the registry value is a risk, once the error will cause other system problems, so here to introduce the use of script automation to modify the registry, to avoid the risk of hand error.
activates SilverLight as follows:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Common\COM Compatibility\{DFEAF541-F3E1-4c24-ACAC-99C30715084A}]
"Compatibility Flags"=dword:0
"ActivationFilterOverride"=dword:1
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\16.0\Common\COM Compatibility\{DFEAF541-F3E1-4c24-ACAC-99C30715084A}]
"Compatibility Flags"=dword:0
"ActivationFilterOverride"=dword:1
specific steps are:
- in your computer to create a TXT file, and then copy the above code -> Paste into the new TXT file and save as ActSilverlight.reg.
- close all office software (including Excel, Word, PPT, etc., all belong to office), then double-click the actsilverlight.reg file just executed, successfully restart the computer, and the power View can be used normally.
PS: Microsoft official solution
Read More:
- Solve the problem that power view in Excel prompts activate method of oleobject class failed or activate method like oleobject is invalid
- No power supply specified for net vdda / vssa in power rail configuration
- The solution to the problem that the method of interacting with database in the servlet class is invalid after the servlet submits 404, 500 refresh and becomes 404, and after connecting to the data pool
- The differences between the equals method in the string class and the equals method in the object class
- 40125,“errmsg“: “invalid appsecret, view more at http://t.cn/RAEkdV
- {“errcode“:40125,“errmsg“:“invalid appsecret, view more at http:\/\/t.cn\/RAEkdVq rid: 60d999f2-3ad5
- Android studio displays the class and method where the cursor is located
- On the intern () method of string class in Java
- invalid method declaration
- Compile error: invalid storage class
- MacBook Pro battery 0%, connected to the power but showed that the battery is not charging solution
- linux VMware Unable to change virtual machine power state: Internal error
- Reset power on password of lightning simulator
- How to Disable Protected View in Microsoft Excel
- Download and activate vs2017 professional edition and Enterprise Edition
- How to Solve failed Precondition Error: attempting to use uninitialized value beta1_power
- “Method does not override method from its superclass”
- [C + +] G + + compiler class template error message: template argument 1 is invalid
- Anaconda create environment, delete environment, activate environment, exit environment
- Utraiso recording DVD application area failed power calibration area error