[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.2

Prevent #NAME? when moving UDF named LastNumber (x) from workbook xlstartBob.xla  to xlstartProd.xla

Asked by rberke in Microsoft Excel Spreadsheet Software

Today's problem is not for the faint of heart, but I hope someone can come up with some ideas.

At my office, xlstartProd.xla has a few UDFs that are used as worksheet functions by all the folks in our domain.  

For instance =LastNumber("Customer order 1234")  returns 1234.

The user login script copies xlstartProd to %appdata%..\xlstart folder, so updates come automatically.

My personal functions are stored in xlStartBob.xla which only resides on my CPU.

For instance  =FirstNumber("1234 is the customer") returns 1234 from the beginning of the string.

It turns out that Excel "simplifies" things by hiding the workbook names.

worksheet formulas show              But their effective links act like this
------------------------------               -------------------------------------------
=firstnumber(a1)                         ='xlstartBob.xla'!FirstNumber(a1)
=lastnumber(a1)                          ='xlstartProd.xla'!LastNumber(a1)

The actual link be viewed with ExcelMenu>Edit>Links

This leads to a problem which I just recently noticed.   I want to "promote" FirstNumber to production status so others can use it.  I moved FirstNumber from xlstartBob to xlstartProd.

Unfortunately, all my old workbooks now return #NAME? because 'xlstartBob.xla'!FirstNumber(a1) no longer exists.

I believe the original cause of the # NAME? problem came from I mistake I made three years ago. Even though the file extensions are .xla, I never completely turned the files into addins.   Specifically, they do not show under tools>addins and they are not stored in %appdata%\microsoft\addins.  I'm not sure if that would solve the problem, but even if it would, I think it is too late to fix this mistake because there are many production excel files that contain ='xlstartProd.xla'!LastNumber(a1)


So, does anybody have any idea how to get out of this mess?

I have one idea that might work:
 
#1  rename xlstartBob to xlStartBobOld and change all of its functions to Private
#2  create a new xlstartBob that has this code like this
' ===== for functions that have been promoted to production =================
Function FirstNumber(x)
    FirstNumber = Application.Run("'xlstartProd.xla'!FirstNumber", x)
End Function
' ===== for ALL functions that have been not promoted to production =================
Function FirstNumber(x)
    FirstNumber = Application.Run("'xlstartBob1.xla'!FirstNumberOrZero", x)
End Function

#3 change the user login script. Where it currently copies xlstartProd to %appdata% , it would also copy xlstartBob to %appdata%

But, I hope someone can suggest something better.


[+][-]10/09/09 01:47 AM, ID: 25533199Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Microsoft Excel Spreadsheet Software
Sign Up Now!
Solution Provided By: rorya
Participating Experts: 1
Solution Grade: A
 
[+][-]10/09/09 09:59 AM, ID: 25536708Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625