How can I use a function from another workbook. It is a public function, I tried to call it by it's name, but it wasn't recognized. Is there other solution except from copy it?
Okay, change the name of the project your function is in in the Properties Window in the VBE, otherwise by default it will display as VBAProject in your list.
This function is a public function and is used by varios excel sheets.
Will this action (of changing its project name) affect these workbooks?
(under the user defined functions it has the name
WorkBook.xls!FunctionName)
It shouldn't do, as you're not altering either the workbook name or the function name. Once you have it referenced, you wont need the workbook name to call the function, just the functio name itself.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.