Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

referencing workbook containing

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Referencing a workbook containing VBA

Referencing a workbook containing VBA

ResolvedVersion 2003

Florian has attended:
Excel VBA Advanced course

Referencing a workbook containing VBA

Hello,

I tried to apply what we learned at the beginning of the week and it works.

Before the course, I had few reports using similar pieces of codes. Hence, I decided to store all the codes and some look-up tables in a separate spreadsheet that all my reports would access.

In order to do so, when I try to attach a workbook to the code (in VBA: Tools – References – Browse ) to the VBA, I get the following error message: “Name conflicts with existing module, project or library”. Even though, it does not look like there should be a conflict.

Does any one have any idea on how could this be fixed?

Thanks a lot

Florian

RE: Referencing a workbook containing VBA

Hi Florian

Thanks for your question

I'm not sure I understand what you are trying to do. I don't understand what you mean by "attach(ing) a workbook to the code".

Could you clarify this for me?

Thanks

Stephen

RE: Referencing a workbook containing VBA

Hello,

What I was trying to do is to reference another workbook within the VBA editor. I think that it needs to be done in the same way as referencing "Microsoft Office 10.0 Object Library".

Please let me know if that helps.

Best Regards,

Florian

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

LARGE and SMALL functions and their uses

Two of Excel's most common functions are the MAX and MIN functions which will display the largest (MAX) or smallest (MIN) value in a series. What if you need the 2nd or 3rd largest or smallest values instead of the largest or smallest?

The =LARGE(array,n) returns the nth largest value of a series.

The =SMALL(array,n) function returns the nth smallest value of a series.

In both functions, 'n' represents the order of the number you want to display. For example, putting in 2 as n will give you the second highest number; putting in 3 as n will give you the third highest number.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.