Macro to blank out filtered columns

Solved/Closed
kat - 7 Jun 2010 à 10:03
 kat - 7 Jun 2010 à 14:12
Hello,

I have a worksheet that is filtered by a number. I would like to blank out columns M, N, S and T. (Only the filtered information) Can you help with the macro code?

Thank you!

1 response

rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 766
7 Jun 2010 à 10:47
Simple .clear would work


range("M2:M" & rows.count).Clear

This will clear all visible cells in column M. Hidden cells due to filtration are not impacted
Thanks so much - just what i was looking for.