View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] david.j.winfield@gmail.com is offline
external usenet poster
 
Posts: 25
Default filter by column instead of rows

I have a sheet with many columns in it and I want to hide columns by
checking the top cell in every row for a specific string.

I am currently using a for loop to check every cell for a combination
of two letters using InStr and hiding the column if it does not
contain the string that I want.

This method works but is pretty slow when I have nearly 200 columns to
check. Is there a faster way to filter by row? The built in auto
filter by columns is much faster even when there are 300+ rows.

Thanks,
David