+ Reply to Thread
Results 1 to 7 of 7

Large file taking much time to save or open

  1. #1
    Forum Contributor prabhuduraraj09's Avatar
    Join Date
    05-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    330

    Large file taking much time to save or open

    Hi all,

    i always receive 200 mb file.
    which i has, around 10 sheets , with pivot tables and formulas.

    i have to open this file update refresh and save as this file, which i am doing via vba.

    however the challenge for me here is though i set xl calculation to manual at the begining and xl calculation to automatic at the end.
    Though i used this code, its taking close to 5 mins to complete this via Vba.

    how or what is the alternate way to reduce.

    help and suggestions is really needed.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Large file taking much time to save or open

    Hi, prabhuduraraj09,

    if you turn on Calculation at the end of the macro Excel will do exactly that - calculate. You would need to turn it off prior to opening the file, when being turned on or the file being saved calculation is taking place.

    Maybe you could post the code to look at - the common things are ScreenUpdating, EnableEvents and Calculation to speed the code up but maybe some of your code may be shortened/streamlinied for faster execution.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Contributor prabhuduraraj09's Avatar
    Join Date
    05-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    330

    Re: Large file taking much time to save or open

    Hi HaHoBe,

    you are my favourite always...........hope you remember me. Thanks for showing up, i am glad you are here...........

    About the Code below is the example, but the original code..........its in office
    Yes HaHoBe, i would really glad if you could help in stream line this code.........Since im not an expert......
    i managed to put together many action codes together on my own.....Really. I thought who would really help me in steam lining.............

    If you could really help me in stream lining the code.........That would be great. For sure i could submit on Monday.
    And will you sure......have check on my message. or is there any other way....could send the codes directly to you for review.


    Would be really glad , if this code can be stream lined for better performance.

    HTML Code: 

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Large file taking much time to save or open

    Hi, prabhuduraraj09,

    if you open a woirkbookand want to refresh pivots in that workbook it´s not ThisWorkbook (which is the workbook with the code) but ActiveWorkbook (as that workbook would be the last one being opened). Waiting for the full code to have a look at.

    Ciao,
    Holger

  5. #5
    Forum Contributor prabhuduraraj09's Avatar
    Join Date
    05-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    330

    Re: Large file taking much time to save or open

    Hi Hahobe,

    Please find the attached file with codes.
    This is what i was talking about to get streamlined.

    Hope you would help me in sorting this
    Attached Files Attached Files
    Last edited by prabhuduraraj09; 04-05-2014 at 07:00 AM. Reason: incorrect attachment

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Large file taking much time to save or open

    Hi, prabhuduraraj09,

    as I do not have the files to test this is untested and needs your test (this is only the start of the macro but shows how to go on):

    Please Login or Register  to view this content.
    Ciao,
    Holger

  7. #7
    Forum Contributor prabhuduraraj09's Avatar
    Join Date
    05-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    330

    Re: Large file taking much time to save or open

    Hi HaHobe,

    im not an expert, but will give a try to shrink every codes............
    Not sure how good.......

    will let you know know incase i face error.......

+ 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. Downloaded Excel file taking long time to open
    By Nanjunda in forum Excel General
    Replies: 1
    Last Post: 11-14-2013, 09:10 AM
  2. Excel file is taking long time(almost 3 mins) while Save
    By harshrajpurohit in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-25-2013, 06:19 AM
  3. Problem with spreadsheet taking a long time to open
    By clowrym in forum Excel General
    Replies: 4
    Last Post: 05-29-2009, 01:14 PM
  4. Replies: 3
    Last Post: 05-31-2006, 05:52 PM
  5. Close & save a file at set time only IF the file is open
    By Clivey_UK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2006, 01:19 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