Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In column C and D of the active sheet I had (row 1 to 6)
Sheet2 1 Sheet1 3 Graph Data 5 Sheet2 10 Sheet2 15 Sheet1 10 Sheets were Sheet1, Sheet2, Graph Data, Sheet4. Sheet4 was active and contained the above. Sub BBB() numrows = 6 For i = numrows To 1 Step -1 Worksheets(Cells(i, 4).Value).Rows(Cells(i, 5).Value) _ .EntireRow.Clear Next End Sub worked fine for me. Adapt it to your situation. -- Regards, Tom Ogilvy "John Fevens" wrote in message ... Tom, Thanks for you response. A couple of questions....if I change delete to clear will that also work? I would rather leave the row nums in tact. Alos, when I did a trila of your code I am getting a inval or unqualified ref. Maybe someday I should just break down and actaully learn some VBA! Bill *** Sent via Devdex http://www.devdex.com *** Don't just participate in USENET...get rewarded for it! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete Duplicate rows in an Excel list | Excel Discussion (Misc queries) | |||
HOW TO DELETE ALL BLANK NONADJACENT ROWS IN LARGE LIST? | Excel Worksheet Functions | |||
how can you sort a list to delete blank rows ? | Excel Discussion (Misc queries) | |||
How do I find duplicate rows in a list in Excel, and not delete it | Excel Discussion (Misc queries) | |||
How to delete rows when List toolbar's "delete" isnt highlighted? | Excel Worksheet Functions |