SOLVED

Reason for Excel Speeding Up?

%3CLINGO-SUB%20id%3D%22lingo-sub-2585117%22%20slang%3D%22en-US%22%3EReason%20for%20Excel%20Speeding%20Up%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2585117%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20an%20Excel%20spreadsheet%20that%20was%20originally%20produced%20using%20Excel%202003%20and%20was%20then%20moved%20to%20Excel%20365%20about%2018mths%20ago.%20Ever%20since%20the%20move%20operations%20(e.g.%20sorting)%20on%20one%20particular%20worksheet%20%22Genl%20List%22%20have%20been%20slow.%20The%20spreadsheet%20used%20to%20have%20quite%20a%20lot%20of%20conditional%20formatting%20which%20I%20removed%20and%20replaced%20with%20VBA%20code%20and%20various%20other%20improvements%20such%20as%20not%20having%20different%20data%20types%20in%20the%20same%20column%20were%20made.%20I%20followed%20various%20recommendations%20to%20speed%20things%20up%20(e.g.%20not%20updating%20the%20screen%20while%20calculations%20were%20being%20done%2C%20using%20VBNullstring%20instead%20of%20%22%22%20etc%20but%20still%20I%20could%20not%20speed%20things%20up%20to%20the%20way%20they%20were%20under%20Excel%202003.%20It%20also%20took%20a%20long%20time%20to%20copy%20the%20%22Genl%20List%22%20worksheet%20to%20another%20spreadsheet%20and%20also%20to%20copy%20all%20the%20data%20on%20it%20into%20a%20new%20worksheet.%20Even%20typing%20entries%20into%20it%2C%20such%20as%20names%2C%20was%20slow.%20Then%20earlier%20this%20week%20I%20had%20a%20breakthrough.%20I%20added%20a%20blank%20worksheet%2C%20and%20just%20used%20the%20option%20to%20copy%20and%20maintain%20source%20formatting.%20I%20renamed%20the%20old%20worksheet%20%22Genl%20List%20Old%22%20and%20the%20new%20one%20%22Genl%20List%22%20so%20that%20macros%20would%20now%20work%20on%20the%20new%20worksheet.%20Suddenly%20everything%20was%20extremely%20fast%2C%20possibly%20faster%20than%20it%20had%20been%20under%20Excel%202003.%3C%2FP%3E%3CP%3EWhat%20I%20don't%20understand%20is%20what%20difference%20the%20copy%20made%20that%20allowed%20the%20functions%20to%20speed%20up.%20I%20had%20checked%20for%20formulae%20(which%20I%20had%20also%20replaced%20by%20VBA%20code)%20and%20checked%20for%20any%20stray%20conditional%20formatting%20in%20the%20original%20worksheet%20and%20neither%20were%20present.%20What%20changed%20to%20make%20things%20so%20much%20better%20i.e%20how%2Fwhy%20did%20my%20actions%20speed%20things%20up%3F%20What%20did%20I%20miss%20that%20was%20eventually%20cured%20by%20my%20copy%20actions%3F%3C%2FP%3E%3CP%3EYou%20can%20see%20the%20speed%20differences%20by%20renaming%20the%20two%20affected%20worksheets%20and%20just%20running%20%22Alpha%20Sort%22%20and%20%22Numeric%20Sort%22%20on%20the%20two%20worksheets.%20The%20buttons%20under%20%22CC%20Macros%22%20were%20produced%20using%20Office%20RibbonX%20Editor%20and%20I%20have%20attached%20a%20file%20showing%20the%20associated%20code.%20This%20will%20allow%20you%20to%20link%20buttons%20to%20macros.%20Some%20buttons%20will%20not%20work%20as%20I%20have%20stripped%20out%20worksheets%20that%20were%20not%20pertinent%20to%20my%20query.%3C%2FP%3E%3CP%3EThe%20environment%20is%20Excel%20365%20running%20Windows%2010%20Home%2021H1%20on%20a%20laptop%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2585117%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2585586%22%20slang%3D%22en-US%22%3ERe%3A%20Reason%20for%20Excel%20Speeding%20Up%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2585586%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1112228%22%20target%3D%22_blank%22%3E%40Paul_Bennington%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20have%20a%20gazillion%20objects%20in%20sheet%20%22%3CSPAN%3EGenl%20List%22.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EJust%20delete%20them.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2586111%22%20slang%3D%22en-US%22%3ERe%3A%20Reason%20for%20Excel%20Speeding%20Up%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2586111%22%20slang%3D%22en-US%22%3EHow%20do%20I%20find%20those%20and%20get%20rid%20of%20them%3F%20Where%20are%20they%20likely%20to%20have%20come%20from%3F%20What%20would%20generate%20them%3F%3C%2FLINGO-BODY%3E
New Contributor

I have an Excel spreadsheet that was originally produced using Excel 2003 and was then moved to Excel 365 about 18mths ago. Ever since the move operations (e.g. sorting) on one particular worksheet "Genl List" have been slow. The spreadsheet used to have quite a lot of conditional formatting which I removed and replaced with VBA code and various other improvements such as not having different data types in the same column were made. I followed various recommendations to speed things up (e.g. not updating the screen while calculations were being done, using VBNullstring instead of "" etc but still I could not speed things up to the way they were under Excel 2003. It also took a long time to copy the "Genl List" worksheet to another spreadsheet and also to copy all the data on it into a new worksheet. Even typing entries into it, such as names, was slow. Then earlier this week I had a breakthrough. I added a blank worksheet, and just used the option to copy and maintain source formatting. I renamed the old worksheet "Genl List Old" and the new one "Genl List" so that macros would now work on the new worksheet. Suddenly everything was extremely fast, possibly faster than it had been under Excel 2003.

What I don't understand is what difference the copy made that allowed the functions to speed up. I had checked for formulae (which I had also replaced by VBA code) and checked for any stray conditional formatting in the original worksheet and neither were present. What changed to make things so much better i.e how/why did my actions speed things up? What did I miss that was eventually cured by my copy actions?

You can see the speed differences by renaming the two affected worksheets and just running "Alpha Sort" and "Numeric Sort" on the two worksheets. The buttons under "CC Macros" were produced using Office RibbonX Editor and I have attached a file showing the associated code. This will allow you to link buttons to macros. Some buttons will not work as I have stripped out worksheets that were not pertinent to my query.

The environment is Excel 365 running Windows 10 Home 21H1 on a laptop

4 Replies

@Paul_Bennington 

You have a gazillion objects in sheet "Genl List".

Just delete them.

How do I find those and get rid of them? Where are they likely to have come from? What would generate them?
best response confirmed by Paul_Bennington (New Contributor)
Solution

@Paul_Bennington 

Either via Find & Select -> Select Objects or via Find & Select -> Selection Pane.

 

I tried and Excel froze on my system. So, you better use some VBA code.

 

Thank you, Detlef. Now I have seen some of the objects I have also realised what triggered them so can now stop the problem from happening in future.
www.000webhost.com