+ Reply to Thread
Results 1 to 9 of 9

Workbook bloated with named ranges, how to clean?

  1. #1
    Registered User
    Join Date
    08-09-2022
    Location
    Philadelphia, PA
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2206 Build 16.0.15330.20260) 64-bit
    Posts
    4

    Workbook bloated with named ranges, how to clean?

    I have a workbook bloated with named ranges but when I click name manager I am unable to open the name manager. When I go to run any of the VBA scripts to delete name ranges including hidden ranges, it gives me a runtime error & out of memory. I am able to run any other VBA script.

    Is there a way to repair this workbook and clean out all of the unwanted name ranges?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Workbook bloated with named ranges, how to clean?

    Can you upload a redacted version of the file?
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-09-2022
    Location
    Philadelphia, PA
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2206 Build 16.0.15330.20260) 64-bit
    Posts
    4

    Re: Workbook bloated with named ranges, how to clean?

    Yes will take a little bit of time to redact but should be able to.

  4. #4
    Registered User
    Join Date
    08-09-2022
    Location
    Philadelphia, PA
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2206 Build 16.0.15330.20260) 64-bit
    Posts
    4

    Re: Workbook bloated with named ranges, how to clean?

    Unfortunately it will not allow me to upload the file even if it is zipped.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Workbook bloated with named ranges, how to clean?

    What size is the file? Can you delete anything? Half of each sheet maybe? That should leave the Named Ranges intact.

    Perhaps save it as .xlsb. Just delete enough to reduce the size (of an .xlsb file) to less than 9.77Mb.

    Failing that, can you put it on OneDrive or other cloud storage and post a link? If you do that, you might need to break the link up with spaces as you are a new user.

  6. #6
    Registered User
    Join Date
    11-07-2013
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Workbook bloated with named ranges, how to clean?

    Have you tried doing an Office/Excel repair?

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Workbook bloated with named ranges, how to clean?

    Or maybe try opening it in LibreOffice. That's free to download. Just a punt as I don't know how LO handles Named Ranges.

  8. #8
    Registered User
    Join Date
    08-09-2022
    Location
    Philadelphia, PA
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2206 Build 16.0.15330.20260) 64-bit
    Posts
    4

    Re: Workbook bloated with named ranges, how to clean?

    Quote Originally Posted by TMS View Post
    What size is the file? Can you delete anything? Half of each sheet maybe? That should leave the Named Ranges intact.

    Perhaps save it as .xlsb. Just delete enough to reduce the size (of an .xlsb file) to less than 9.77Mb.

    Failing that, can you put it on OneDrive or other cloud storage and post a link? If you do that, you might need to break the link up with spaces as you are a new user.
    Actually was able to troubleshoot it based on this. Pulled a blank tab out and the name manager opened for that blank tab workbook. Found the 3 offending tabs and deleted them. Now i am actually able to delete the names out. All 41k of them.

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Workbook bloated with named ranges, how to clean?

    All 41k of them.
    No wonder Name Manager was struggling.

    Glad you got it sorted.



    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Moving worksheet with named ranges to new workbook without referencing old workbook
    By madcaplaughs79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2014, 07:54 PM
  2. Bloated workbook file + Embedded images?
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-22-2014, 08:09 PM
  3. [SOLVED] Displaying all Named Ranges in workbook
    By Barb Reinhardt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2006, 01:10 PM
  4. Checking for named ranges in a workbook
    By loopoo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2005, 01:10 PM
  5. SQL query a workbook -> too many named ranges?
    By Dave in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-19-2005, 02:05 PM
  6. Named Ranges in External Workbook
    By saskin23 in forum Excel General
    Replies: 1
    Last Post: 02-11-2005, 05:07 PM

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