![]() |
Removing Lines Identified by Autofilter
I have a large sheet that uses an ODBC connection to a
large database to pull back approx 14000 lines. I then have to do some filtering in Excel which I do manually via the Autofilter then highlight the lines and hit Ctrl - (minus key). Does anyone know the code to delete the rows that are returned by the autofilter ? I tried recording it as a macro, the autofilter part is OK, I can dim an array put in the values I want removed then loop the autofilter so each value in the array is filtered, but the lines removal records as a fixed range, I want the range to be dynamic based on the results of the filter.... Many thanks in advance |
Removing Lines Identified by Autofilter
Could you send an example of the code you have so far?
"Neil" wrote in message ... I have a large sheet that uses an ODBC connection to a large database to pull back approx 14000 lines. I then have to do some filtering in Excel which I do manually via the Autofilter then highlight the lines and hit Ctrl - (minus key). Does anyone know the code to delete the rows that are returned by the autofilter ? I tried recording it as a macro, the autofilter part is OK, I can dim an array put in the values I want removed then loop the autofilter so each value in the array is filtered, but the lines removal records as a fixed range, I want the range to be dynamic based on the results of the filter.... Many thanks in advance |
All times are GMT +1. The time now is 11:05 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com