Closed Thread
Results 1 to 2 of 2

Remove unused styles from workbook

  1. #1
    Registered User
    Join Date
    09-17-2008
    Location
    London
    Posts
    1

    Remove unused styles from workbook

    I have been trying to write code that cycles through a workbook and removes any unused styles. The workbooks I test the code on are very large (sometimes the .usedrange of all the sheets is 200000 cells) so the code takes an awful long time to run, hours in some cases!

    I have thought that it may be faster to use an array to store the style list but wasnt sure how to do that. Basically any ideas that will speed this macro up would be useful.

    I know there are 3rd party addins that will do this but you have to pay about £50!

    Thanks

    Here is the code

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    04-14-2010
    Location
    Brisbane
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Remove unused styles from workbook

    Hi Gossy,

    I used some of your code and added a few of my own to do the removal in stages. It suits me as I can stop between removal and check. I realise this post is old so there maybe other that superseeded this. I will post if anyone interested.

    Cheers,
    Ferry

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Updating by multi-user from one workbook
    By Tortus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2008, 03:07 AM
  2. Macro moves out of Active WorkBook. Why?
    By ulfah in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2008, 01:14 PM
  3. using cell content to reference a worksheet tab name in second workbook
    By Conor in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2007, 09:32 AM
  4. Reference to a workbook
    By spreethi81 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-28-2007, 01:23 PM
  5. '02 Excel Workbook to Workbook...HELP!!!
    By shutterlug in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-01-2007, 11:12 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