_HELP OBJECT NOT FOUND IN 8.0 LIBRARY. 
Author Message
 _HELP OBJECT NOT FOUND IN 8.0 LIBRARY.

Hello all,

I'm following the tutorial at:
http://www.*-*-*.com/

and I'm trying to programmatically add a toolbar to a database using VBA.
The problem I'm having is that when I assign the control to a variable it
cannot find the specified type.  For example.

Sub NewToolbar()
 Dim cbrCommandBar  As CommandBar

The CommandBar object is supported as part of the MS Object library 8.0 but
cannot find the object.  I get a "User-defined type not defined" whenever I
run the code.  When I use the object browser it is not listed in any of the
libraries.

Does anyone have any ideas why?

Thanks,



Sat, 22 Sep 2001 03:00:00 GMT  
 _HELP OBJECT NOT FOUND IN 8.0 LIBRARY.
You need to set a reference to MS Office obect library in menu
Tools,References



Quote:
> Hello all,

> I'm following the tutorial at:
> http://msdn.microsoft.com/library/techart/ofcmdbar.htm

> and I'm trying to programmatically add a toolbar to a database using VBA.
> The problem I'm having is that when I assign the control to a variable it
> cannot find the specified type.  For example.

> Sub NewToolbar()
>  Dim cbrCommandBar  As CommandBar

> The CommandBar object is supported as part of the MS Object library 8.0
but
> cannot find the object.  I get a "User-defined type not defined" whenever
I
> run the code.  When I use the object browser it is not listed in any of
the
> libraries.

> Does anyone have any ideas why?

> Thanks,




Sun, 23 Sep 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Help: Can not find ADSI v2.0 object library for VB

2. Object library ven2232.olb for Visual Basic for Applications not found

3. Object Library Not found

4. Help finding Help for Microsoft HTML Object Library

5. microsoft word 8.0 object library

6. Access 8.0 Object Library & Security

7. Microsoft Word 8.0 Object Library

8. Object Library für Word Perfect 8.0 in vba

9. Microsoft Word 8.0 Object Library

10. MS Word 9.0 vs. 8.0 Object Library

11. Outlook 8.0 Library Object

12. MS Graph 8.0 Object Library question.

 

 
Powered by phpBB® Forum Software