PDA

View Full Version : Missing MSComctllib



Rasm
04-05-2011, 07:02 AM
I have a piece of code using ListView - all was working well - but not I get

Error = User defined Type not defined

I checked my references - they all seem fine - anybody know how I can turn that back on - My Listview control is SP6

Admin
04-05-2011, 08:06 AM
Hi,

I don't have direct answer to this Q. Have a look at here (http://www.xtremevbtalk.com/archive/index.php/t-140158.html)

Rasm
04-05-2011, 08:55 PM
Thanks for the help - turns out I had to re-register the MScomCtl.ocx file - now it works file. hmmm Windows 7 has it in a folder called c:\Windows\SysWOW64. In the past I have used Access to reg and unreg OCX files - but could not fint it in Access 2007. So I found a cool piece of code on the net - just had to change the Windows path.

Rasm
04-05-2011, 09:45 PM
ahhh - I put the code to reg & unreg under the download part of this forum