excel crashes on opening 6mb file which has lots of objects












0














I had copy-pasted lot of content from webpages into an excel file in various sheets. When I wanted to save the file, it took a very long time and later i realised that the file size grew to a very large extent and turned out to be a 6mb file.



Now whenever I open the file, excel crashes... Is there any way to remove all objects from an excel file through vba from some other excel file? or suggest how can i solve this issue



Thank you










share|improve this question


















  • 1




    You can view the xml structure of an XLSX by converting it to a ZIP archive. Look for the images in: /xl/media/
    – cybernetic.nomad
    Nov 12 '18 at 15:18






  • 1




    Thank you for your quick reply. /xl/media/ contains only 1 file of 1kb but xlactiveX` folder contains 20,163 files of size 4.47 mb, xldrawings` folder contains 12 files of size 2.85 mb and xlworksheets folder contains 12 files of size 2.50 mb any suggestion?
    – Sabha
    Nov 12 '18 at 15:27






  • 2




    Start removing files from xlactiveX? (I assumed the content that bloated the file so much was images). Do I need to add you should work on a copy of the file?
    – cybernetic.nomad
    Nov 12 '18 at 15:35






  • 1




    haha.. i was working on copy of the file anyways. I tried your solution, deleted all activex file, converted back to .xlsx and tried opening the file. Initially I got error Excel found unreadable content in x.xlsx. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes. I clicked Yes and atleast I was able to open the file. Deleted all objects and now the file size is 222kb. Thank you so much. God bless !
    – Sabha
    Nov 12 '18 at 15:48










  • btw. you can answer the question so that I can accept it!
    – Sabha
    Nov 12 '18 at 15:49
















0














I had copy-pasted lot of content from webpages into an excel file in various sheets. When I wanted to save the file, it took a very long time and later i realised that the file size grew to a very large extent and turned out to be a 6mb file.



Now whenever I open the file, excel crashes... Is there any way to remove all objects from an excel file through vba from some other excel file? or suggest how can i solve this issue



Thank you










share|improve this question


















  • 1




    You can view the xml structure of an XLSX by converting it to a ZIP archive. Look for the images in: /xl/media/
    – cybernetic.nomad
    Nov 12 '18 at 15:18






  • 1




    Thank you for your quick reply. /xl/media/ contains only 1 file of 1kb but xlactiveX` folder contains 20,163 files of size 4.47 mb, xldrawings` folder contains 12 files of size 2.85 mb and xlworksheets folder contains 12 files of size 2.50 mb any suggestion?
    – Sabha
    Nov 12 '18 at 15:27






  • 2




    Start removing files from xlactiveX? (I assumed the content that bloated the file so much was images). Do I need to add you should work on a copy of the file?
    – cybernetic.nomad
    Nov 12 '18 at 15:35






  • 1




    haha.. i was working on copy of the file anyways. I tried your solution, deleted all activex file, converted back to .xlsx and tried opening the file. Initially I got error Excel found unreadable content in x.xlsx. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes. I clicked Yes and atleast I was able to open the file. Deleted all objects and now the file size is 222kb. Thank you so much. God bless !
    – Sabha
    Nov 12 '18 at 15:48










  • btw. you can answer the question so that I can accept it!
    – Sabha
    Nov 12 '18 at 15:49














0












0








0







I had copy-pasted lot of content from webpages into an excel file in various sheets. When I wanted to save the file, it took a very long time and later i realised that the file size grew to a very large extent and turned out to be a 6mb file.



Now whenever I open the file, excel crashes... Is there any way to remove all objects from an excel file through vba from some other excel file? or suggest how can i solve this issue



Thank you










share|improve this question













I had copy-pasted lot of content from webpages into an excel file in various sheets. When I wanted to save the file, it took a very long time and later i realised that the file size grew to a very large extent and turned out to be a 6mb file.



Now whenever I open the file, excel crashes... Is there any way to remove all objects from an excel file through vba from some other excel file? or suggest how can i solve this issue



Thank you







excel excel-vba excel-2010 excel-2007 excel-automation






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 12 '18 at 15:13









Sabha

331117




331117








  • 1




    You can view the xml structure of an XLSX by converting it to a ZIP archive. Look for the images in: /xl/media/
    – cybernetic.nomad
    Nov 12 '18 at 15:18






  • 1




    Thank you for your quick reply. /xl/media/ contains only 1 file of 1kb but xlactiveX` folder contains 20,163 files of size 4.47 mb, xldrawings` folder contains 12 files of size 2.85 mb and xlworksheets folder contains 12 files of size 2.50 mb any suggestion?
    – Sabha
    Nov 12 '18 at 15:27






  • 2




    Start removing files from xlactiveX? (I assumed the content that bloated the file so much was images). Do I need to add you should work on a copy of the file?
    – cybernetic.nomad
    Nov 12 '18 at 15:35






  • 1




    haha.. i was working on copy of the file anyways. I tried your solution, deleted all activex file, converted back to .xlsx and tried opening the file. Initially I got error Excel found unreadable content in x.xlsx. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes. I clicked Yes and atleast I was able to open the file. Deleted all objects and now the file size is 222kb. Thank you so much. God bless !
    – Sabha
    Nov 12 '18 at 15:48










  • btw. you can answer the question so that I can accept it!
    – Sabha
    Nov 12 '18 at 15:49














  • 1




    You can view the xml structure of an XLSX by converting it to a ZIP archive. Look for the images in: /xl/media/
    – cybernetic.nomad
    Nov 12 '18 at 15:18






  • 1




    Thank you for your quick reply. /xl/media/ contains only 1 file of 1kb but xlactiveX` folder contains 20,163 files of size 4.47 mb, xldrawings` folder contains 12 files of size 2.85 mb and xlworksheets folder contains 12 files of size 2.50 mb any suggestion?
    – Sabha
    Nov 12 '18 at 15:27






  • 2




    Start removing files from xlactiveX? (I assumed the content that bloated the file so much was images). Do I need to add you should work on a copy of the file?
    – cybernetic.nomad
    Nov 12 '18 at 15:35






  • 1




    haha.. i was working on copy of the file anyways. I tried your solution, deleted all activex file, converted back to .xlsx and tried opening the file. Initially I got error Excel found unreadable content in x.xlsx. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes. I clicked Yes and atleast I was able to open the file. Deleted all objects and now the file size is 222kb. Thank you so much. God bless !
    – Sabha
    Nov 12 '18 at 15:48










  • btw. you can answer the question so that I can accept it!
    – Sabha
    Nov 12 '18 at 15:49








1




1




You can view the xml structure of an XLSX by converting it to a ZIP archive. Look for the images in: /xl/media/
– cybernetic.nomad
Nov 12 '18 at 15:18




You can view the xml structure of an XLSX by converting it to a ZIP archive. Look for the images in: /xl/media/
– cybernetic.nomad
Nov 12 '18 at 15:18




1




1




Thank you for your quick reply. /xl/media/ contains only 1 file of 1kb but xlactiveX` folder contains 20,163 files of size 4.47 mb, xldrawings` folder contains 12 files of size 2.85 mb and xlworksheets folder contains 12 files of size 2.50 mb any suggestion?
– Sabha
Nov 12 '18 at 15:27




Thank you for your quick reply. /xl/media/ contains only 1 file of 1kb but xlactiveX` folder contains 20,163 files of size 4.47 mb, xldrawings` folder contains 12 files of size 2.85 mb and xlworksheets folder contains 12 files of size 2.50 mb any suggestion?
– Sabha
Nov 12 '18 at 15:27




2




2




Start removing files from xlactiveX? (I assumed the content that bloated the file so much was images). Do I need to add you should work on a copy of the file?
– cybernetic.nomad
Nov 12 '18 at 15:35




Start removing files from xlactiveX? (I assumed the content that bloated the file so much was images). Do I need to add you should work on a copy of the file?
– cybernetic.nomad
Nov 12 '18 at 15:35




1




1




haha.. i was working on copy of the file anyways. I tried your solution, deleted all activex file, converted back to .xlsx and tried opening the file. Initially I got error Excel found unreadable content in x.xlsx. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes. I clicked Yes and atleast I was able to open the file. Deleted all objects and now the file size is 222kb. Thank you so much. God bless !
– Sabha
Nov 12 '18 at 15:48




haha.. i was working on copy of the file anyways. I tried your solution, deleted all activex file, converted back to .xlsx and tried opening the file. Initially I got error Excel found unreadable content in x.xlsx. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes. I clicked Yes and atleast I was able to open the file. Deleted all objects and now the file size is 222kb. Thank you so much. God bless !
– Sabha
Nov 12 '18 at 15:48












btw. you can answer the question so that I can accept it!
– Sabha
Nov 12 '18 at 15:49




btw. you can answer the question so that I can accept it!
– Sabha
Nov 12 '18 at 15:49












1 Answer
1






active

oldest

votes


















2














You can view the xml structure of an XLSX by converting it to a ZIP archive.



Look for the images in: /xl/media/



As mentioned in your comment, ActiveX content is in xlactiveX






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53265040%2fexcel-crashes-on-opening-6mb-file-which-has-lots-of-objects%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    You can view the xml structure of an XLSX by converting it to a ZIP archive.



    Look for the images in: /xl/media/



    As mentioned in your comment, ActiveX content is in xlactiveX






    share|improve this answer


























      2














      You can view the xml structure of an XLSX by converting it to a ZIP archive.



      Look for the images in: /xl/media/



      As mentioned in your comment, ActiveX content is in xlactiveX






      share|improve this answer
























        2












        2








        2






        You can view the xml structure of an XLSX by converting it to a ZIP archive.



        Look for the images in: /xl/media/



        As mentioned in your comment, ActiveX content is in xlactiveX






        share|improve this answer












        You can view the xml structure of an XLSX by converting it to a ZIP archive.



        Look for the images in: /xl/media/



        As mentioned in your comment, ActiveX content is in xlactiveX







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 12 '18 at 16:19









        cybernetic.nomad

        2,2051820




        2,2051820






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53265040%2fexcel-crashes-on-opening-6mb-file-which-has-lots-of-objects%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Florida Star v. B. J. F.

            Danny Elfman

            Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues