excel vba class not registered
时间: 2023-09-28 19:09:02 浏览: 49
The error message "Class not registered" in Excel VBA typically occurs when the required DLL or OCX files are not properly registered in the Windows registry. To resolve this issue, you can try the following steps:
1. Close all Office applications.
2. Press Windows + R keys to open the Run dialog box.
3. Type "regsvr32 filename.dll" (replace filename.dll with the name of the DLL file that's causing the error) and press Enter.
4. If the registration is successful, you should see a message that says "DllRegisterServer in filename.dll succeeded."
5. Restart your computer and try running the VBA code again.
If the above steps don't work, you may need to reinstall the software that provides the missing DLL or OCX file.
相关推荐
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![xlsm](https://img-home.csdnimg.cn/images/20210720083646.png)
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)