ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pb with additional VBA reference (https://www.excelbanter.com/excel-programming/361736-pb-additional-vba-reference.html)

Zorro[_3_]

Pb with additional VBA reference
 
Hi all
One of the macro in my sheet uses an extra reference (PDFCreator, to create
PDF documents from the sheet).
My problem is the following: on a computer where this extra reference
(PDFCreator) is not installed, I cannot execute any of the macro of my sheet
(even those that doesn't use PDFCreator).

How can I do to:
- detect if the extra references needed are installed on the current
computer
- disable the functions using these references
- make the other functions work as usual

Thank you!



Rafael Guerreiro Osorio

Pb with additional VBA reference
 
Dear Zorro,

Take a look at the "Visual Basic Add-In Model" entry at the Visual Basic
Language Reference. There you will find the documentation for the references
collection of objects, which will help you to accomplish your three tasks:

"Use the References collection to add or remove references. The References
collection is the same as the set of references selected in the References
dialog box."

Best,

RGO


"Zorro" wrote:

Hi all
One of the macro in my sheet uses an extra reference (PDFCreator, to create
PDF documents from the sheet).
My problem is the following: on a computer where this extra reference
(PDFCreator) is not installed, I cannot execute any of the macro of my sheet
(even those that doesn't use PDFCreator).

How can I do to:
- detect if the extra references needed are installed on the current
computer
- disable the functions using these references
- make the other functions work as usual

Thank you!





All times are GMT +1. The time now is 12:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com