Workbook won't run - Missing Reference?

AlexanderBB

Well-known Member
Joined
Jul 1, 2009
Messages
1,835
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
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
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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.
 
Upvote 0

Forum statistics

Threads
1,214,872
Messages
6,122,026
Members
449,061
Latest member
TheRealJoaquin

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
Back
Top