Problem Description: Modify a predecessor's code, in my own computer run very well, but put to the user computer (Win7 x64) on the above but can not run, reported a title error.
Check the following is the problem of Comdlg32.ocx, the place to use the control is:
Dim Odialogf_file_commondialog=FalseSet odialog = CreateObject ("Mscomdlg.commondialog")
Workaround:
1. Register the control: Find this control comdlg32.ocx, the user computer above does not (here can be: link), put to. Windows\System32 and then register with CMD:
regsvr32 comdlg32.ocx
You may not be able to register, please select Administrator permissions to run. Try to run again, if you're like me, it's still an error "the control could not being created because it's not properly licensed", you're going to modify the registry.
2. Modify the Registration form:
Open registry: Found:HKLM\Software\CLASSES\Licenses\4D553650-6ABE-11cf-8ADB-00AA00C00905, 设置默认值(Default)
为gfjmrfkfifkmkfffrlmmgmhmnlulkmfmqkqj
(This is the result of Google, more direct, you can also try to re-install a VB, and then removed, the installation process will be registered to this control) (http://stackoverflow.com/questions/4386124/ How-can-i-use-the-common-save-as-dialog-from-vbscript)
My problem is solved here.
Recently feel the heart tired, hurriedly let me go home the New Year ...
Problem sharing: ActiveX component can ' t create object: ' Mscomdlg.commondialog '