Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have several worksheets which I would like to clear all contents and thus
it would be ready for data input next time. I tried Clear or ClearContents but some sheets do not clean up, any idea please ? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try the below macro
Sub Macro() Dim sh As Worksheet For Each sh In ActiveWorkbook.Sheets sh.Cells.ClearContents Next End Sub If this post helps click Yes --------------- Jacob Skaria "Seeker" wrote: I have several worksheets which I would like to clear all contents and thus it would be ready for data input next time. I tried Clear or ClearContents but some sheets do not clean up, any idea please ? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Tks Jacob.
"Jacob Skaria" wrote: Try the below macro Sub Macro() Dim sh As Worksheet For Each sh In ActiveWorkbook.Sheets sh.Cells.ClearContents Next End Sub If this post helps click Yes --------------- Jacob Skaria "Seeker" wrote: I have several worksheets which I would like to clear all contents and thus it would be ready for data input next time. I tried Clear or ClearContents but some sheets do not clean up, any idea please ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Active sheet instead of a "sheet1" for Macro | Excel Worksheet Functions | |||
"ClearContents" command halts code | Excel Discussion (Misc queries) | |||
how do i convert this to a formula +"sheet1!J"&(sheet2!A30)-1 | Excel Worksheet Functions | |||
How do I color code the "SHEET1" Tab in Excel? | Excel Worksheet Functions | |||
Auto "copy and paste" individual cells from various sheets into one sheet ?? | Excel Discussion (Misc queries) |