Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i have the following code to hide rows based on specific text:
Sub search() Dim cell As Range Application.ScreenUpdating = False For Each cell In Range("A12:A5000") If cell.Value = "RTRSSTCK" Then cell.EntireRow.Hidden = True ElseIf cell.Value = 1 Then cell.EntireRow.Hidden = False End If Next Application.ScreenUpdating = True End Sub How would i change the code to delete the row with the text and shif everything else up -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I use conditional formatting to hide or delete rows? | Excel Worksheet Functions | |||
How can i hide a row or delete | Excel Discussion (Misc queries) | |||
How do I delete columns and rows in Excel, not just hide them | Excel Discussion (Misc queries) | |||
Use formula to hide/delete cell? | Excel Worksheet Functions | |||
Hide/Delete XL Menus | Excel Programming |