Control references on a macro

Hi,

I want to create a sub which control the presence of all references added for the good working of my macro.
I want use this code found on internet:

Dim Ref As Reference
For Each Ref In References
    Debug.Print Ref.Name & " - " & Ref.FullPath
Next Ref

The problem is that I receive an error message because VB doesn’t recognize “Reference” or “References” objects.
These objects can’t be used with the VBA code used by BO?

Thanks
Fandor.


ChristopheA :fr: (BOB member since 2003-09-04)

Correct … there is no “References” object in the object model. Your internet reference must have been for some other piece of software, not Business Objects. The only thing comes to mind quickly with a path is a document. Is that what you’re trying to get information on?


Dwayne Hoffpauir :us: (BOB member since 2002-09-19)

Fandor I think you are trying to print the references present in Tools–>References in VBA Editor.


JaiGupta (BOB member since 2002-09-12)

Yes, it’s that I want.
The code I found on interned was based on MsAccess.

Fandor


ChristopheA :fr: (BOB member since 2003-09-04)