Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to modify my code to search from the last row, at the moment it only
goes from the last row there is data in for my specific column(DT), can I make it start from the last row where there is data from column A but only searching the column i need(DT) Dim rng As Range Dim i As Long Set rng = ActiveSheet.Range(Cells(1, "DT"), Cells(Rows.Count, "DT").End(xlUp)) With rng For i = .Rows.Count To 1 Step -1 If InStr(UCase(.Cells(i)), UCase(UserForm7.TextBox2.Text)) = 0 Then .Cells(i).EntireRow.Delete End If Next i End With Thank you in advance |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Functions (search within search result) reply to this please | Excel Worksheet Functions | |||
Search lastname + firstname (search on uppercase) | Excel Programming | |||
How do I search excel spreadsheets using multiple search criteria. | Excel Worksheet Functions | |||
I cant do a search on this forum. Everytime I search, it comes up with zero results | Excel Programming | |||
Create a search Field within a worksheet to search command buttons | Excel Programming |