Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting Contents of Sheets
I have a routine which deletes all the contents of a
sheet. Clear All only takes out the text, and formatting. How do I also get rid of any charts, buttons or other objects? Without deleting the sheet, I need to make the sheet completely empty. THanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting Contents of Sheets
Hi
Dim Obj For Each Obj In ActiveSheet.Shapes Obj.Delete Next Obj HTH Cordially Pascal "ExcelMonkey" a écrit dans le message de ... I have a routine which deletes all the contents of a sheet. Clear All only takes out the text, and formatting. How do I also get rid of any charts, buttons or other objects? Without deleting the sheet, I need to make the sheet completely empty. THanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting Contents of Sheets
Be careful with this, it also deletes the data validation and autofilter
dropdown arrows if those facilities are currently in use. Worst thing is that no-one seems to know how to get them back for that sheet. See this discussion between Dave Peterson and myself on the problem and a solution http://tinyurl.com/3lgq5. -- HTH RP (remove nothere from the email address if mailing direct) "papou" wrote in message ... Hi Dim Obj For Each Obj In ActiveSheet.Shapes Obj.Delete Next Obj HTH Cordially Pascal "ExcelMonkey" a écrit dans le message de ... I have a routine which deletes all the contents of a sheet. Clear All only takes out the text, and formatting. How do I also get rid of any charts, buttons or other objects? Without deleting the sheet, I need to make the sheet completely empty. THanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How can I delete the contents of a cell without deleting the formu | Excel Discussion (Misc queries) | |||
Keep sheet from deleting contents | Excel Worksheet Functions | |||
Retaining formula after deleting contents. | Excel Discussion (Misc queries) | |||
alert before deleting contents of a cell | Excel Discussion (Misc queries) | |||
Deleting contents of cells in non contiguous ranges | Excel Worksheet Functions |