Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have placed this code in a blank workbook without any reference to
ActiveX Data Objects set and tried it, however nothing happens when I run the code. I cannot see why as I read the code to be - If the adodb reference exists, remove it. Whether the adodb reference existed initally or not, set a new reference to the one listed. (I have also tried running this as .addfromfile and this does not work either. If I run the code with a reference set it does not get rid of it. I was thinking of trying code like this below; sub 'code to check if current reference is missing if (code above) = true then ActiveWorkbook.VBProject.References.remove.item ActiveWorkbook.VBProject.References ("adobb") ActiveWorkbook.VBProject.References.AddFromFile ("c:\program files \common files\system\ado\msado20.tlb") end if end sub however where I can get this to work when testing on my machine I cannot get it to work on any other machine. Please help, I need a fix for this by the morning and I am almost bald |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to convert all 3d references to normal references in a workboo | Excel Discussion (Misc queries) | |||
How to convert all 3d references to normal references in a workboo | Excel Worksheet Functions | |||
Help with converting a block of cells with Absolute and mixed references to relative references | Excel Worksheet Functions | |||
How to rename references from range names to cell references | Excel Discussion (Misc queries) | |||
Tools | References - information about references | Excel Programming |