Share via

Excel 2007, can't delete a custom table style

Anonymous
2014-09-24T09:21:43+00:00

excel 2007, sp2 and 3. windows xp and 7.

i have created a custom table style (Home, Styles, Format as Table, Custom).

right clicking and chosing "delete" gives a confirmation box but then does nothing.

nor does using VBA and TableStyles("myStyle").Delete.

i've checked that no tables in the workbook are using the style.

what am i doing wrong?

thanks,

e.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2014-09-29T14:14:17+00:00

found it.

undocumented rule.

"you can't delete a TableStyle from a workbook if one of its sheets is protected, even if that sheet does not reference that TableStyle."

annoying.

i hope someone finds this useful.

e.

Was this answer helpful?

40+ people found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2014-09-24T14:16:05+00:00

    i think you misunderstand.

    i do not want to delete the table.

    i do not want to clear the formatting.

    i want to delete the TableStyle.

    the documentation says i can.

    but it does not work.

    thanks,

    e.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2014-09-24T09:48:40+00:00

    Deleting the table does not remove the default formatting from the Range. Hence first select a None formatting for your table as selected in the below diagramand then click 'Convert to Range' in Table Tools Design Tab.

    Was this answer helpful?

    0 comments No comments