Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Library not registered Error Message

Hi

I am trying to set the library reference for outlook in excel as each person
has a different version of excel on their pc's but I get the following
message:

Automated error, Library not registered

Below is my code.

Dim rVBReference As VBIDE.Reference
Dim wbBook As Workbook
Dim stGuid As String

Set wbBook = ThisWorkbook
stGuid = Outlook.Application.COMAddIns(1).GUID

With wbBook
For Each rVBReference In .VBProject.References
If rVBReference.GUID = stGuid Then

GoTo ExitHere
End If
Next rVBReference 'Create the external reference in the VB-project..
ThisWorkbook.VBProject.References.AddFromGuid stGuid, 8, 0

GoTo ExitHere
End With
ExitHe
Set rVBReference = Nothing
Exit Sub
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
Excel Library not registered. Kart Excel Discussion (Misc queries) 0 February 17th 09 11:21 AM
VB Error Object Library Not Registered Karine Rivet Excel Discussion (Misc queries) 2 April 11th 06 07:13 PM
Object Library Not Registered rgarner[_2_] Excel Programming 0 August 24th 04 09:46 PM
"Library not registered" message accessing an HTMLDocument object Mike S.[_2_] Excel Programming 2 April 7th 04 12:01 PM
'Object library not registered' in Excel97 Humberto Excel Programming 3 August 11th 03 02:41 PM


All times are GMT +1. The time now is 10:11 PM.

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

About Us

"It's about Microsoft Excel"