Workbook won't run - Missing Reference?

AlexanderBB

Well-known Member
Joined
Jul 1, 2009
Messages
1,715
I have an xlsm file created in Office 2010 and have copied it to a 2nd machine running Office 2007

On attempting to run a macro it reported a Missing reference "Mircosoft Windows Common Controls 6.0 (SP6) and that it wants MSCOMCTL.OCX in C:\Windows\Sytem32.
I have copied it there but it still shows MISSING in Tools - References.
Shouldn't the "MISSING" part go away ?
If I ignore that and run code (which opens an ADODB Connection) it shows "Can't Find Project Or Library" on adOpenStatic in the line
VBA Code:
rx.Open sql, cnn, sql, adOpenStatic, adLockReadOnly
If I try Debug-Compile it again reports "Can't Find Project Or Library" this time on line
VBA Code:
Private Sub ListView1_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader)

I'm a bit lost sorting this. Can anyone help ? All works fine in Office 2010
 

Some videos you may like

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

AlexanderBB

Well-known Member
Joined
Jul 1, 2009
Messages
1,715
I have it sorted. Needed to add the listview control (again?) From Additional Controls, than drag it onto the Form. It had gone.
Anyone know why? I also had a combo box on one of the worksheets and that seems to be bung, had to REM out code that referenced it.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,529
Messages
5,625,352
Members
416,096
Latest member
forevans

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top