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

Is there a way to insure that the Visual Basic for Applications Extensibility
Library is available when Excel is started.

I'm using Excel 2003 on windows XP Pro with all current updates.

I have sheets that different users use & sometimes it's available &
sometimes not.

Thanks
--
Mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Extensibility Library


your users may not have enabled "Access to VB project
setting in Macro/Security.

this will disable any calls related to vbaproject and it's properties.

on any normal install they WILL have extensibility dll on their
machines, so i doubt that is the real issue.

If other referenes are missing.. then you'll see
standard unqualified VBA methods e.g. Right("string",1 )misbehave.



--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Mike Molyneaux wrote in


Is there a way to insure that the Visual Basic for Applications
Extensibility Library is available when Excel is started.

I'm using Excel 2003 on windows XP Pro with all current updates.

I have sheets that different users use & sometimes it's available &
sometimes not.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Extensibility Library

Try

With ThisWorkbook.VBProject.References
On Error Resume Next
If .Item("VBIDE") Is Nothing Then
.AddFromGuid _
GUID:="{0002E157-0000-0000-C000-000000000046}", _
Major:=5, Minor:=3
End If
End With



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Mike Molyneaux" wrote
in message
...
Is there a way to insure that the Visual Basic for Applications
Extensibility
Library is available when Excel is started.

I'm using Excel 2003 on windows XP Pro with all current
updates.

I have sheets that different users use & sometimes it's
available &
sometimes not.

Thanks
--
Mike



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Extensibility Library

Might be better to do:
Major:=5, Minor:=0
Otherwise you might be caught out by lower versions.

Or maybe even:
Major:=0, Minor:=0

RBS

"Chip Pearson" wrote in message
...
Try

With ThisWorkbook.VBProject.References
On Error Resume Next
If .Item("VBIDE") Is Nothing Then
.AddFromGuid _
GUID:="{0002E157-0000-0000-C000-000000000046}", _
Major:=5, Minor:=3
End If
End With



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Mike Molyneaux" wrote in
message ...
Is there a way to insure that the Visual Basic for Applications
Extensibility
Library is available when Excel is started.

I'm using Excel 2003 on windows XP Pro with all current updates.

I have sheets that different users use & sometimes it's available &
sometimes not.

Thanks
--
Mike




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Extensibility Library

Very good point.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"RB Smissaert" wrote in message
...
Might be better to do:
Major:=5, Minor:=0
Otherwise you might be caught out by lower versions.

Or maybe even:
Major:=0, Minor:=0

RBS

"Chip Pearson" wrote in message
...
Try

With ThisWorkbook.VBProject.References
On Error Resume Next
If .Item("VBIDE") Is Nothing Then
.AddFromGuid _
GUID:="{0002E157-0000-0000-C000-000000000046}", _
Major:=5, Minor:=3
End If
End With



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Mike Molyneaux"
wrote in message
...
Is there a way to insure that the Visual Basic for
Applications Extensibility
Library is available when Excel is started.

I'm using Excel 2003 on windows XP Pro with all current
updates.

I have sheets that different users use & sometimes it's
available &
sometimes not.

Thanks
--
Mike








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Extensibility Library

Thank you very much - works great - only thing I had to change
was to move 'Public VBComp as VBComponent' from Option Explicit to
'dim VBComp as VBComponent' in the routines that used it.

Thanks again
--
Mike


"keepITcool" wrote:


your users may not have enabled "Access to VB project
setting in Macro/Security.

this will disable any calls related to vbaproject and it's properties.

on any normal install they WILL have extensibility dll on their
machines, so i doubt that is the real issue.

If other referenes are missing.. then you'll see
standard unqualified VBA methods e.g. Right("string",1 )misbehave.



--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Mike Molyneaux wrote in


Is there a way to insure that the Visual Basic for Applications
Extensibility Library is available when Excel is started.

I'm using Excel 2003 on windows XP Pro with all current updates.

I have sheets that different users use & sometimes it's available &
sometimes not.

Thanks


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
VB Extensibility Library - 97 to 2002 George J[_2_] Excel Programming 9 August 2nd 05 11:19 AM
VB Extensibility library and "late binding" Dennis Excel Discussion (Misc queries) 0 March 30th 05 10:51 PM
Lost VBA extensibility library reference VanS[_2_] Excel Programming 7 January 28th 05 11:19 AM
VBA extensibility library for deleting forms, modules, code etc... Ajit Excel Programming 2 November 19th 04 03:41 AM
VBA extensibility Library aspadda[_2_] Excel Programming 3 November 19th 04 03:39 AM


All times are GMT +1. The time now is 06:57 PM.

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"