+ Reply to Thread
Results 1 to 4 of 4

Range name disappears when saving

  1. #1
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Range name disappears when saving

    I'm tearing my hair out with this one.

    I have a workbook containing 3 named ranges.
    A macro in another workbook opens the workbook with the names in it, does some stuff then saves the opened wb with range names, with another file name.

    When I open the newly named file two of the range names are still there but the third has disappeared.

    Any suggestions anyone?

    Usual TIA

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    In the macro that saves the workbook, try checking for the existence of each name just before closing. Assuming it's already gone, back up from there.
    Last edited by shg; 10-21-2008 at 03:53 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi shg,

    Yes, I'd already tried this. The names are there immediately before the book is saved then closed, but on re-opening it they have disappeared.

    However I've been doing some further checks. Two of the names started with the same three characters. e.g. ABC_Name1, and ABC_Name2, and it's one of those that disappears. So I created a new name, reversing the characters i.e. Name2_ABC.

    Doing that has solved the original problem, which makes me wonder if Excel doesn't like names starting with the same characters. I've not yet had chance to do some testing with dummy workbooks to see if I can prove this, but I'll try tomorrow.

    Rgds

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Let us know what you find out ...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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