+ Reply to Thread
Results 1 to 9 of 9

Cell name reference is adding file path which causes errors in 2007

  1. #1
    Registered User
    Join Date
    03-04-2009
    Location
    Stillwater, Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    6

    Cell name reference is adding file path which causes errors in 2007

    Sorry, first post here, I'll do my best to explain my problem.

    I have a file with VBA code that does financial planning(MULTSTAT). It runs inside Excel and works great in Excel 97-03. It saves and opens data files (Elder1 in this example) through it's own menu.

    MULTSTAT has cell names and the VBA code refers to these names. The problem is when I open my Elder1 file, the cell name reference changes and includes the file path and file name for Elder1 and not just the worksheet, column, and row.

    Example:
    Name: AccPay
    Value: 30. Accounts Payable
    Refers To: =BSdata!$A$122
    Scope: Workbook

    After opening the Elder1 file:

    Name: AccPay
    Value: #REF!
    Refers To ='C:\IFFS+\Elder\[Elder1.xls]BSdata'!$A$122
    Scope: Workbook

    I really need to figure out why the file path and name are inserted into the refers to section of the name manager for the cell references and how to stop them from appearing there.

    Let me know if I need to provide more information.

    Thanks,

    Randy
    Last edited by Leith Ross; 03-05-2009 at 07:14 PM. Reason: Added Excel Version to Title

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Cell name reference is adding file path which causes errors

    Hello truepokefan,

    Welcome to the Forum!

    I see you have listed Excel 2007 in your profile. Is the problem happening with Excel 2007 only or all versions of Excel?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    03-04-2009
    Location
    Stillwater, Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Cell name reference is adding file path which causes errors

    Thanks.

    It only has a problem in Excel 2007. It works fine in Excel 97-2003.

  4. #4
    Registered User
    Join Date
    03-04-2009
    Location
    Stillwater, Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Cell name reference is adding file path which causes errors

    Bump no response.

    Let me know what I can add to help you help me.

    Thanks.

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Cell name reference is adding file path which causes errors in 2007

    Hello truepokefan,

    Someone else will have to help you with this. I don't Excel 2007. If there is no response by this evening then I will contact some of the other moderators who do have Excel 2007 and have them look at your post.

  6. #6
    Registered User
    Join Date
    03-04-2009
    Location
    Stillwater, Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Cell name reference is adding file path which causes errors in 2007

    Thanks Leith.

    I thought it would be a simple fix, but I have modified so many settings and saved files in different formats and have had nothing work. I am not a programmer, but I have found in our VBA code where it deletes the cell name ranges from (I believe) the MULTSTAT file in order to take on the cell name ranges from the incoming data file (Elder1 in this case).

    I wonder if there is a way to rewrite the code to keep the cell name ranges in the MULTSTAT file and ignore those in the incoming data file. If so, that might work. I am not sure though.

    Anyway, thanks for your time. Maybe someone can come up with an answer for my problem.


    Randy

  7. #7
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Cell name reference is adding file path which causes errors in 2007

    Hello Randy,

    Are the MULTISTAT files, flat files? By that I mean, text files whose data are comma or tab separated?

  8. #8
    Registered User
    Join Date
    03-04-2009
    Location
    Stillwater, Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Cell name reference is adding file path which causes errors in 2007

    I am not well versed in this, but I would say the answer to that question is no they are not flat files.

    Randy

  9. #9
    Registered User
    Join Date
    03-04-2009
    Location
    Stillwater, Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Cell name reference is adding file path which causes errors in 2007

    Bump.

    I really need to find a solution to this problem. Please let me know if I can do more to explain it further, or if there is a more appropriate forum for the question.

    Thanks,

    Randy

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1