Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello All,
I am new to VBA programming. I have many worksheets in my excel file. I want to serach "Total" keyword in all worksheets. Then delete all the rows containing "Total" Keyword. Please help me. Thanks Mano -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
is the location of this word 'Total' restricted to a specifc column? -- Regards Frank Kabel Frankfurt, Germany Hello All, I am new to VBA programming. I have many worksheets in my excel file. I want to serach "Total" keyword in all worksheets. Then delete all the rows containing "Total" Keyword. Please help me. Thanks Manoj --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Manoj,
This should take care of it for you: Sub RemoveTotalRows() For Each tSheet In ActiveWorkbook.Worksheets Set myTotal = tSheet.Cells.Find("Total") Do Until myTotal Is Nothing myTotal.EntireRow.Delete Set myTotal = tSheet.Cells.Find("Total") Loop Next End Sub Stan Scott New York City "mk_garg20 " wrote in message ... Hello All, I am new to VBA programming. I have many worksheets in my excel file. I want to serach "Total" keyword in all worksheets. Then delete all the rows containing "Total" Keyword. Please help me. Thanks Manoj --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
How to total rows in Excel with non-value cells like "included"? | Excel Worksheet Functions | |||
Linking two "total" pages to create a "Complete Total" page | Excel Worksheet Functions | |||
Delete find "Grand Total" | Excel Programming | |||
Delete find "Grand Total" | Excel Programming |