Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem setting reference to xla file

Status
Not open for further replies.

bdbBear

Programmer
Apr 29, 2005
54
US
I created a test xla file and wrote a simple function and subroutine which I call from another excel file. According to a book I have there are two ways I can call a subroutine:

1. Application.Run "filename.xla!subname"

This method works.

Another way is to just call the subroutine using it's subname. However, this requires setting a reference to the xla file.

So, I set a reference to the file (prior to this I made sure that the xla file was not checked off in the list of add in files). However, I got the following message:

"Name conflicts with existing module, projet, or object library."

I read one post saying that the names of the various objects needed to be different so I changed the names of the sheets and modules in the xla file; it's a simple file so this just meant chaning sheet1 to s1, etc.

Any ideas? btw, using 03 in xp.

Thanks!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top