Gasman
Enthusiastic Amateur
- Local time
- Today, 06:35
- Joined
- Sep 21, 2011
- Messages
- 17,498
Jack, what I would do is run that reference code on a db that has that reference, and use that?
You could even put it all into a table?
Here is my 12 version
HTH
This is the code I used from that video, modified for Access.
You could even put it all into a table?
Here is my 12 version
Code:
Access - Microsoft Access 12.0 Object Library - {4AFFC9A0-5F99-101B-AF4E-00AA003F0F07} - 9 - 0 - C:\Program Files (x86)\Microsoft Office\Office12\MSACC.OLB - True = 0
HTH
This is the code I used from that video, modified for Access.
Code:
Sub WorkingWithReferences()
'Declare our variables
Dim vbProj As VBIDE.VBProject
Dim vbRefs As VBIDE.References
Dim vbRef As VBIDE.Reference
Dim db As DAO.Database
Set db = CurrentDb()
'Get the workbook VBA Project
Set vbProj = Application.VBE.ActiveVBProject
'Get the references that belong to the VB Project
Set vbRefs = vbProj.References
'Loop through each reference in the reference collection and print some details
For Each vbRef In vbRefs
Debug.Print "---------------------------------"
Debug.Print vbRef.Name & " - " & _
vbRef.Description & " - " & _
vbRef.GUID & " - " & _
vbRef.Major & " - " & _
vbRef.Minor & " - " & _
vbRef.fullPath & " - " & _
vbRef.BuiltIn & " = " & _
vbRef.Type
Next
'PowerPoint
'Microsoft PowerPoint 16.0 Object Library
'{91493440-5A91-11CF-8700-00AA0060263B}
'2
'12
'C:\Program Files\Microsoft Office\Root\Office16\MSPPT.OLB
'False
'0
'Set a reference to a single library
'Set vbRef = vbRefs.item("PowerPoint")
' vbRefs.Remove Reference:=vbRef
'Lets add back the reference we removed
'vbRefs.AddFromGuid GUID:="{91493440-5A91-11CF-8700-00AA0060263B}", Major:=2, Minor:=12
'vbRefs.AddFromFile Filename:="C:\Program Files\Microsoft Office\Root\Office16\MSPPT.OLB"
End Sub