VBA: Tools -> Reference

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a two workbooks. Whenever one is opened, I need the other to be open.
I know it is possible to do this by creating a reference within the VBA the
first workbook. I have tried going into Tools -> Reference and selecting the
second workbook, but this gives an error.

Error: Name conflicts with existing module, project or object library.

Thanks, in advance, for any help you might give me!
 
Hit ctrl-r to see the projects for each workbook.
Select the project that you want to refer to.
hit F4 to see it's properties
change that (name) property to something unique--don't use VBAProject

Save that workbook with its new project name.

Try adding the reference.
 
All this takes place in the VBE--not excel.

Dave said:
Hit ctrl-r to see the projects for each workbook.
Select the project that you want to refer to.
hit F4 to see it's properties
change that (name) property to something unique--don't use VBAProject

Save that workbook with its new project name.

Try adding the reference.
 
Awesome! Thanks!!!

Dave Peterson said:
Hit ctrl-r to see the projects for each workbook.
Select the project that you want to refer to.
hit F4 to see it's properties
change that (name) property to something unique--don't use VBAProject

Save that workbook with its new project name.

Try adding the reference.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top