selected cell<\/a> to the cells that you choose.<\/p>\n\n\n\nTo replicate the last example using this tool, first, select a cell outside the range, where no formatting is applied (for example, E13<\/strong>), and navigate to Home >> Clipboard<\/strong> and choose Format Painter<\/strong>.<\/p>\n\n\n\nNow, drag cells from C1<\/strong> to D11<\/strong> to apply new formatting. Because you selected a cell with no formatting, the new format is like removing all formatting from cells.<\/p>\n\n\n\n <\/figure>\n\n\n\nCreate a Macro and Apply Shortcut<\/h2>\n\n\n\n You can remove formatting using the VBA code. If you are not an expert in VBA, don’t worry a macro recorder will help you with that.<\/p>\n\n\n\n
Click a cell inside the table. In the bottom-left part of the screen, there is a button to record a macro.<\/p>\n\n\n\n <\/figure>\n\n\n\nIf you cant see it, you can navigate to View >> Macros >> Macros >> Record Macro<\/strong>.<\/p>\n\n\n\n <\/figure>\n\n\n\nA new window will appear. Name your Macro and apply a shortcut key if you want. I’ll be using Ctrl + Shift + R<\/strong> as a shortcut to this Macro.<\/p>\n\n\n\nIf you also want to apply this shortcut, click the little white box under the Shortcut Key<\/strong> and press Shift + R<\/strong>.<\/p>\n\n\n\n <\/figure>\n\n\n\nImmediately after you click the OK<\/strong> button, the recorder starts to record your every move. Select Table Design >> Table Styles >> More >> Clear<\/strong>.<\/p>\n\n\n\nNow, after the formatting is removed from the table, you can stop the recording by clicking the bottom-left corner.<\/p>\n\n\n\n <\/figure>\n\n\n\nLet’s see how our macro looks like.<\/p>\n\n\n\n
Go to View >> Macros<\/strong> and click the View Macros<\/strong> button (Alt + F8<\/strong>).<\/p>\n\n\n\nFrom the list, select the macro and click Edit<\/strong>.<\/p>\n\n\n\nSub RemoveFormatting()\n'\n' RemoveFormatting Macro\n'\n' Keyboard Shortcut: Ctrl+Shift+R\n'\n ActiveSheet.ListObjects(\"Table4\").TableStyle = \"\"\nEnd Sub<\/code><\/pre>\n\n\n\nThe code that removes formatting is just a single line. it assigns table style for a table (Table4). There is also shortcut information, you created (Ctrl + Shift + R<\/strong>). It’s just a comment, so you can delete it.<\/p>\n\n\n\nThe code shouldn’t work just for a table with this particular name, but for the one that is currently selected.<\/p>\n\n\n\n
Modify the code so it looks like this:<\/p>\n\n\n\n
Sub RemoveFormatting()\n ActiveCell.ListObject.TableStyle = \"\"\nEnd Sub\n<\/code><\/pre>\n\n\n\nNow, if you run the macro or use the keyboard shortcut you created, Excel will instantly clear filters<\/a> for the selected table.<\/p>\n","protected":false},"excerpt":{"rendered":"If you create a table from data, Excel will automatically apply a default formatting to it. Let’s see how it works in practice….<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[170,190],"yoast_head":"\n
Remove Table Formatting in Excel<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n