ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Adding a reference under VBA (https://www.excelbanter.com/excel-programming/279528-adding-reference-under-vba.html)

Robin Clay[_2_]

Adding a reference under VBA
 
Greetings !

And, having copied this sheet into a new workbook, how do
I then add to the new workbook a Reference to the old
workbook ?

I can do it manually, but I can't record my steps as a
Macro.


Tom Ogilvy

Adding a reference under VBA
 
Explain how you do it manually - then we might have a better idea of what
you exactly mean by reference.

If you mean a reference added in Tools=References in the VBE,

http://support.microsoft.com/?id=160647
XL97: How to Programmatically Create a Reference

http://support.microsoft.com/?id=156882
XL97: Err Msg: "Name Conflicts with Existing Module"

--
Regards,
Tom Ogilvy



"Robin Clay" wrote in message
...
Greetings !

And, having copied this sheet into a new workbook, how do
I then add to the new workbook a Reference to the old
workbook ?

I can do it manually, but I can't record my steps as a
Macro.





All times are GMT +1. The time now is 01:30 PM.

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