ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Put Autofilter in VBA long to run (https://www.excelbanter.com/excel-programming/297255-put-autofilter-vba-long-run.html)

patnad

Put Autofilter in VBA long to run
 
In an EXCEL sheet witch contain many numbers and formulas, I put a
Autofilter on a column by coding in VBA. After I put a Criteria:="*E*"
in the Autofilter. My problem is when I try to change the Height of al
row of the filter's result, it tooks about 15 minutes to complete. Th
sheet has about 6000 row. Is anybodies knows why it took so lon
time....Thanks...


Columns(1).AutoFilter Field:=1, Criteria1:="*E*"

'This command tooks about 15 minutes.....
Range(Rows(intFirstInputRow), Rows(intLastInputRow)).RowHeight = 0.

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 03:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com