Consulting

Page 1 of 2 1 2 LastLast
Results 1 to 20 of 22

Thread: Too Many Cell Formats

  1. #1
    VBAX Regular
    Joined
    Jun 2005
    Posts
    87
    Location

    Too Many Cell Formats

    I am getting the error "Too Many Cell Formats" and the Microsoft help does not help fix it nor can I do anything in excel.
    Can anyone help?

  2. #2
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    When does the error occur, when you open the workbook.
    Are you not able to select the cells and change the format?
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  3. #3
    VBAX Regular
    Joined
    Jun 2005
    Posts
    87
    Location
    I'm not able to change formats or add new rows.

  4. #4
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Do you have any sheet specific code running?
    can you post your workbook here?
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  5. #5
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Is the sheet protected, does it occur on all sheets?
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  6. #6
    VBAX Regular
    Joined
    Jun 2005
    Posts
    87
    Location
    There is VBA coding so that you have to enter a password to see a sheet.
    Yes it occurs on all sheets. I tried deleting all but 1 sheet and it still does it.
    I tried posting the workbook but it says its too big even when I try to delete stuff.

  7. #7
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    zip it up spaz and try it again......Is it just this one workbook and once again is the sheet protected?
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  8. #8
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    What Excel version are you running? 2003 contains "Excel specifications and limits" in the help file
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  9. #9
    VBAX Regular
    Joined
    Jun 2005
    Posts
    87
    Location
    Lucas - no the spreadsheet is not protected (except for the password)
    Even when I zip it, its too big - wont let me upload.

    MDMac - I am using 2003. I look it up in the help file but it just shows me what the specs and limits are - not how to fix it.

  10. #10
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    how big?
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  11. #11
    I get that annoyance ever so often, and when I investigated, the conclusion is to use fewer formats. Think of Excel keeping a list of all the different format combinations for all the cells in a huge, but finite sized, table. If you do a lot of individual cell formatting, then that table can fill up. It helps a little for a short time to exit Excel, and start it up again. I think it must add a little padding to the table when you do that.
    I've seen a couple of places that you can reduce the table requirements somewhat by selecting at the same time as many of the identically formatted cells as you can, then apply the format.
    HTH, Sid

  12. #12
    Moderator VBAX Master geekgirlau's Avatar
    Joined
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,464
    Location
    It also helps to use Styles, which are often overlooked in Excel.

  13. #13
    Hold it ... you can't just say that without more explanation and/or proof. That could be a very important workaround if it is indeed true. Could you elaborate?

  14. #14
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Hi Spaz,
    Once I had the password to open the workbook I was able without any problem to insert rows and reformat cells. I think you are missing a step.

    When the workbook opens and you have entered your password you are then presented with a dialog which asks if you wish to open the file read-only.....I think you must be clicking on yes. Try clicking on No

    On another issue, why is the vba project password protected? There is no code at all
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  15. #15
    VBAX Regular
    Joined
    Jun 2005
    Posts
    87
    Location
    There are codes, I took them out before sending it to you because they make the file even larger.

    Try "format cell" of a few lines or a column - thats where I also get the error.

  16. #16
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    I have tried formating columns, multiple rows....what specific type of formatting are you trying to apply as I cannot duplicate your problem.
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  17. #17
    Moderator VBAX Master geekgirlau's Avatar
    Joined
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,464
    Location
    There is a limit of approximately 4000 different cell format combinations in Excel. For example, if you have bold and italic in one cell, and bold in another, that's 2 combinations. It's pretty hard to hit this limit, but I've seen it done. Often the difference between the formats is not readily noticable, but any difference in any option available under Format | Cell is classified as a separate combination.

    Although styles are predominately used in Word, you can also set them in Excel. The simplest method is to format a cell as you would normally, then select Format | Style. Type a name for your style (such as Heading) and select Add. All the formatting options have now been defined in the style, and is automatically added to your cells each time you apply the style.

    The advantages are:
    • each cell to which you have applied the style is identical;
    • if you make a change to the style (Format, Style, Modify) all cells that are using that style will automatically update to the new format;
    • because the formatting of all cells using the style is identical, it's much more difficult to ever hit the limit of formatting combinations in a single workbook.
    Unfortunately the Style box is not included on any of the standard toolbars, but you can easily customise the toolbar to add the style drop-down (as you will have seen in Word).

  18. #18
    VBAX Regular
    Joined
    Jun 2005
    Posts
    87
    Location
    THats great but how can I fix my current worksheet? When I try to select a column to format cells, it gives me the error.

  19. #19
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    I think something is going on with your setup. What version of excel are you using. I have not been able to recreate your error with the file you sent me. Please tell me exactly the steps you are taking that is causing the error.....select entire rows 8 through 12. right click and select format cells......what format are you applying?, etc. so that I can reproduce your error.
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  20. #20
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    If its a column....which column.....do you select the entire column?
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •