Hello and Happy New Year
I need to select cells C12:F374 from sheet Start to sheet End, and delete the data in them all. Must be easy... Thanx in advance..
Hello and Happy New Year
I need to select cells C12:F374 from sheet Start to sheet End, and delete the data in them all. Must be easy... Thanx in advance..
Group the relevant Sheets - select the range - clear the contents - Ungroup the sheets.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
A quick little loop, one of many approaches...
Sub ClearMultiple() Dim i As Long For i = Sheets("Start").Index To Sheets("End").Index Sheets(i).Range("C12:F374").ClearContents Next i End Sub
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
Sub snb() Sheets(1).Range("C12:F374") = "" Sheets.FillAcrossSheets Sheets(1).Range("C12:F374") End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks