Hi all
I have a userform which have two DTPicker Controls. It worked like a charm, but recently I formatted my laptop, and now when press a button to open userform, it returns error msg "Run Time Error -2147221005 (800401f3) Invalid class string"
I figured out why this happens. This happens on UserForm Initialization at strings:
Set StartDropCalendar = Me.Controls.Add("MSCOMCT2.DTPicker.2", "")
Set EndDropCalendar = Me.Controls.Add("MSCOMCT2.DTPicker.2", "")
Because I had no MSCOMCT2 on system by default, I downloaded RAR folder, and placed it to C:\windows\sysWOW64 because I installed 64 bit Windows. Then run cmd.exe as administrator, and typed command
regsvr32 C:\Windows\SysWOW64\MSCOMCT2.OCX
The command registered MSCOMCT2.OCX. but when I tried ti open userform I was getting the same message. I rebooted PC, but got the same error...
Then I read from somewhere that I must run regsvr32 placed exactly in sywWOW64 folder, so I typed this command on cmd.exe
C:\WINDOWS\sysWOW64\regsvr32.exe C:\WINDOWS\sysWOW64\MSCOMCT2.OCX
And after hitting Enter key I got RegSvr32 Error message: C:\WINDOWS\sysWOW64\MSCOMCT2.OCX failed to load
So, what's a problem?! In addition I must tell that I cannot change desktop wallpaper. I get a message This picture annnot be set as wallpaper. Internal Error occurred IMO I must repair my Windows...
PS: I know, I can use DTPicker alternatives, but I want to solve this issue...
Thx in advance
Bookmarks