Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello,
I would like to delete rows for a specific criteria in visual basic, but I don't know how. I have filtered my data, and now I would like to delete the data that did not pass the filter. Thanks for helping! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I think its the EntireRow.Delete that you can use
So you can loop through your data, and any criteria that doesn't match put Range("WhateverCell").EntireRow.Delete "Ruben" wrote: Hello, I would like to delete rows for a specific criteria in visual basic, but I don't know how. I have filtered my data, and now I would like to delete the data that did not pass the filter. Thanks for helping! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
What was wrong with the previous suggestion?
-- __________________________________ HTH Bob "Ruben" wrote in message ... Hello, I would like to delete rows for a specific criteria in visual basic, but I don't know how. I have filtered my data, and now I would like to delete the data that did not pass the filter. Thanks for helping! |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Bob,
Sorry for my very late reaction. I used your first suggestion for autofiltering and deleting the rows, which works well. I think I have posted the question twice, so there was nothing wrong with your first post. Thank you very much for helping me! Ruben "Bob Phillips" wrote: What was wrong with the previous suggestion? -- __________________________________ HTH Bob "Ruben" wrote in message ... Hello, I would like to delete rows for a specific criteria in visual basic, but I don't know how. I have filtered my data, and now I would like to delete the data that did not pass the filter. Thanks for helping! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Data filter and deleting rows in visual basic | Excel Discussion (Misc queries) | |||
How to delete rows in visual basic | Excel Discussion (Misc queries) | |||
Visual Basic | Excel Discussion (Misc queries) | |||
changing the visual basic in office 2003 to visual studio net | Excel Discussion (Misc queries) | |||
Visual Basic Help | Excel Discussion (Misc queries) |