![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
Per David-W-Fenton: in my opinion, and MSCOMCTL.OCX is a dangerous dependency (subject to the ActiveX killbits problem). Can somebody steer me in the right direction for finding out how to instantiate an MSComctlLib.Treeview without having a reference to MSComctlLib? |
#22
| |||
| |||
|
|
I'm using it in code that creates Excel spreadsheets containing, among other things, code modules. Maybe there's a better way, but VBIDE is what I came up with when I stumbled through it several years ago. |
#23
| |||
| |||
|
|
But on Excel 12 machines, this code dies with "1004: Cannot run the macro 'AccrIntM'. The macro may not be available in this workbook or all macros may be disabled." ------------------------------------------------------------------- -- 16080 myResult = gExcelApp.Run("AccrIntM", |
#24
| |||
| |||
|
|
The MSO.DLL is a completely useless reference, in my opinion |
#25
| |||
| |||
|
|
So the ribbon seems to require a reference to the Office Object Library. In your case you probably have no customized ribbon code, |
|
so you do not need it. These days that may not be the usual case, which is why I am posting this. |
![]() |
| Thread Tools | |
| Display Modes | |
| |