Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Reference... AddFromGuid

Good morning everyone,

For my project, the user must add from the Tools -Reference the
"Microsoft ActiveX Data Objects 2.0 Library" in the VBA window. This
is what was given to me.... However, it adds the "Microsoft Forms 2.0
Object Library".

Anyone would know which one is the good one? Or where I could find the
info?

ThisWorkbook.VBProject.References.AddFromGuid _
GUID:="{0D452EE1-E08F-101A-852E-02608C4D0BB4}", major:=2, minor:=0

Thank you for your time

Denys

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Reference... AddFromGuid

Found it....

Thanks

Denys



On Oct 23, 8:14 am, Denys wrote:
Good morning everyone,

For my project, the user must add from the Tools -Reference the
"Microsoft ActiveX Data Objects 2.0 Library" in the VBA window. This
is what was given to me.... However, it adds the "Microsoft Forms 2.0
Object Library".

Anyone would know which one is the good one? Or where I could find the
info?

ThisWorkbook.VBProject.References.AddFromGuid _
GUID:="{0D452EE1-E08F-101A-852E-02608C4D0BB4}", major:=2, minor:=0

Thank you for your time

Denys



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Reference... AddFromGuid

Manually add the appropriate reference, then -

With ThisWorkbook.VBProject.References("ADODB")
Debug.Print .Description ' Microsoft ActiveX Data Objects 2.0 Library
Debug.Print .Name, .major, .minor ' ADODB 2 0
Debug.Print .Fullpath ' path\msado20.tlb
Debug.Print .GUID ' {00000200-0000-0010-8000-00AA006D2EA4}
End With

Somewhere in this ng RB Smissaert posted a routine to add the latest ADODB
version available in user's system, might be worth a search. The respective
GUID's are not the same for later versions.

Regards,
Peter T


"Denys" wrote in message
oups.com...
Good morning everyone,

For my project, the user must add from the Tools -Reference the
"Microsoft ActiveX Data Objects 2.0 Library" in the VBA window. This
is what was given to me.... However, it adds the "Microsoft Forms 2.0
Object Library".

Anyone would know which one is the good one? Or where I could find the
info?

ThisWorkbook.VBProject.References.AddFromGuid _
GUID:="{0D452EE1-E08F-101A-852E-02608C4D0BB4}", major:=2, minor:=0

Thank you for your time

Denys



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nesting a sheet name reference within a cell reference??? Broyston Excel Discussion (Misc queries) 9 July 8th 08 08:35 PM
Column letter reference as number reference mcphc Excel Programming 8 January 30th 07 03:06 PM
Formulas that reference cells that reference another cell Andrea Excel Discussion (Misc queries) 7 October 19th 06 08:14 AM
Row reference increment but preserve column reference Pwanda Excel Worksheet Functions 1 April 28th 05 01:12 PM
Macro to Reference Column Next to Current Reference dolphinv4 Excel Discussion (Misc queries) 2 April 11th 05 08:36 AM


All times are GMT +1. The time now is 01:11 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"