Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting Row
I'm still grappling with a code for deleting an entire row from a sheet. I'm
getting nowhere so I was hoping someone could start me on the right track with a sample code here's the details: On Sheet 1, Cell A1 is a 5 Digit number I want to lookup on Sheet 2, Range A2:A1000 and then delete the entire row corresponding to the number. Cheers gregorK |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting Row
On Sheet 1, Cell A1 is a 5 Digit number I want to lookup on Sheet 2
Range A2:A1000 and then delete the entire row corresponding to the number. RowToDelete = Sheets("Sheet1").Cells(1, "A") Sheets("Sheet2").Cells(RowToDelete, 1).EntireRow.Delet -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Deleting the text without deleting the formula | Excel Worksheet Functions | |||
Deleting cell data without deleting formula | Excel Discussion (Misc queries) | |||
deleting values in a worksheet without deleting the formulas | Excel Worksheet Functions | |||
how prevent formula in cell from deleting when deleting value???? | New Users to Excel | |||
Deleting Hyphens or Dashes from multiple cells without deleting the remaining content | Excel Programming |