Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub Deletenames()
Dim Going As Long Dim Far As Long Dim Pass As Range Going = ActiveSheet.Cells(10000, 2).End(xlUp).Row For Far = Going To 1 Step -1 Set Pass = ActiveSheet.Range("N" & Far) If Pass.Value = "Every name but name entered in textbox" Then Pass.Offset(-1).Resize(2).EntireRow.Delete End If Next Far End Sub I am looking for assistance with this code. Id like to add additional steps to the start of it. Ideally I would like to run this macro and have a textbox appear with a message that reads €śWhats your name?€ť Below this question is an empty field with a combo box linked to various different names on €śSheetlookhere€ť N2:N1000. Whatever name is selected into the combo box will be searched on SheetEmployee1, SheetEmployee2, and SheetEmployee3. Each row in Column N that does not contain the name that was selected will be deleted + the row above it will also be deleted. Can you advise? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete & Merge Columns,Delete Rows with filter, etc | Excel Programming | |||
How do I include names in formula by picking up names from rows | Excel Worksheet Functions | |||
Sorting and matching rows of names with Socials with master list and eliminating the extra names | Excel Worksheet Functions | |||
How to delete rows when List toolbar's "delete" isnt highlighted? | Excel Worksheet Functions | |||
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below | Excel Programming |