+ Reply to Thread
Results 1 to 3 of 3

Excel'07 Binary file crashes if data validation refers to named range against Excel Table

  1. #1
    Registered User
    Join Date
    03-23-2011
    Location
    West Bromwich, England
    MS-Off Ver
    Excel 2007 & 2013 in Azure
    Posts
    83

    Excel'07 Binary file crashes if data validation refers to named range against Excel Table

    Hi All,

    I have a number of MS Excel workbooks which are uploaded into a SharePoint workflow solution. Some of these are large in size and exceed our companies single file size limit in SharePoint of 50mb. We've submitted a buiness case to increase the size but must continue as is for now (and must also manage risk by considering the request is denied). As a result, I've been converting xlsx & xlsm files to xlsb binary (as significantly reduces file size) which for the most part has not caused any issues, until now:

    If the workbook contains the combination detailed below, the binary file will save ok and work as expected until you close and re-open, when you will be greeted with the standard "MS Office Excel has stopped working" error. So far this occurs 100% with no exceptions. The repair removes the table and deletes the "Refers To" code of the named range, but not the named range itself.

    The combination is: MS Excel Table plus a Dynamic Named Range which refers to a column in the MS Excel Table plus Data Validation which refers to the Named Range

    This can be replicated in 2 minutes in a new workbook (I've prepared and attached an xlsx file, with steps taken to build, simply continue from where you save as a binary).

    The purpose of this topic is that I am trying to get a better understanding of the route cause and if there is a fix/patch etc. For anyone else who also has this problem, my tests so far confirm that it is the above combination that causes the crash on opening, however there are a number of workarounds by changing the above combination, one of which is to change the formula in the "Refers To" property of the named range so it refers to the worksheet instead of directly referencing the table (eg instead of "=Table1[Column1]", as per the attachment, try replacing with "=Sheet1!$A$2:INDEX(Sheet1!$A:$A,COUNTA(Sheet1!$A:$A))").

    I hope the above is clear enough and the attachment helps to demonstrate, however I will gladly provide more information if requested and where possible.

    Can anyone enlighten me as to the route cause and if there is a fix?

    Many Thanks in advance.

    Tooley
    Last edited by Tooley; 01-28-2015 at 11:07 AM.

  2. #2
    Registered User
    Join Date
    09-02-2009
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: Excel'07 Binary file crashes if data validation refers to named range against Excel Ta

    Apologies everyone for digging up such an old thread, but it's worth a bump.

    Tooley, did you ever find out what was going on here? I have just run into the same problem, and this is the only post I've been able to find anywhere so far which accurately describes the issue.

    I'd been planning to use tables as a way of avoiding creating loads of dynamic named ranges, and had the exact same setup, i.e. named range referring to table column, used for data validation elsewhere in the book, all working fine, save as .xlsb, crashes Excel when reopening.

    In my case there were a number of tables in the file (but so far only one containing a column which was referenced by data validation elsewhere in the book). "Open and repair" breaks all the tables, removes all table formatting and deletes all named ranges in the workbook - except the one causing the issue. The problematic named range appears in Name Manager (Ctrl+F3) but I am unable to delete it. I can however successfully delete it by running an XL4 macro to remove ALL names (including hidden ones), i.e.

    Please Login or Register  to view this content.
    I assume the problem doesn't manifest itself if you keep the file as .xlsx and don't save as a binary?

  3. #3
    Registered User
    Join Date
    03-23-2011
    Location
    West Bromwich, England
    MS-Off Ver
    Excel 2007 & 2013 in Azure
    Posts
    83

    Re: Excel'07 Binary file crashes if data validation refers to named range against Excel Ta

    Apologies, I've only just picked this up.

    In short, we found the bug was definately saving as a 2007 binary file which had named ranges referencing an excel table. Despite numerous searches on the net we could find a fix, so initially as a workaround we saved as standard xlsx/xlsm. We then had to make other workarounds, as could nolonger save on SharePoint due to the file size restriction (the main reason we saved as binary in the first place) and saved in a network folder instead. Sorry I'm unable to advise of a solution for Excell 2007 but can advise it's doesn't seem to be a problem in 2010 (We upgraded from 2007 where the problem ocurred so maybe it's a bug in 2007?).

    Steve

+ 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. Read binary data from non excel file and post in excel file
    By D S Rama Rao in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-05-2015, 05:33 PM
  2. Replies: 2
    Last Post: 01-17-2013, 07:16 PM
  3. Replies: 12
    Last Post: 07-08-2011, 10:48 AM
  4. Replies: 3
    Last Post: 07-29-2010, 02:27 PM
  5. Named Range Refers To
    By Tim in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2006, 11:00 PM

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