"cann't find project or lib" error

  • Thread starter ×נסטסיה
  • Start date
×

×נסטסיה

i try to create a simple command bar with some command bar buttons in VBA
(outlook). and i got "cann't find project or library error" on:

Dim cbTesting As CommandBar
Dim ctlCBarButton As CommandBarButton

the VBA editor doen't recognize the CommandBar and CommandBarButton objects :(

Can you plz tell what have i done wrong this time..
10x
 
M

Martin Seelhofer

Hey there
i try to create a simple command bar with some command bar buttons in VBA
(outlook). and i got "cann't find project or library error" on:

Dim cbTesting As CommandBar
Dim ctlCBarButton As CommandBarButton

the VBA editor doen't recognize the CommandBar and CommandBarButton
objects :(

Check if there's an active reference to the Office Object Library
(Tools - References in the VBA-Editor). If there is none, scroll
down to the correct entry (e.g. 'Microsoft Office 11.0 Object Library'
for Office 2K3) and check it...


Cheers,
Martin
 
Top