Autofilter Question

L

Les Stout

Hi all, i have used the code below to insert a filter in a specific
cell, but it puts the filters in row 2 all used cells ? Am i doing
something wrong ?

Range("E18").AutoFilter


Best regards,

Les Stout
 
J

Jim Rech

It makes no sense to autofilter a single cell. So, just like when you do an
autofilter manually, Excel guesses what the range should be. If you
specific a multi-cell range however Excel will use it.

--
Jim
| Hi all, i have used the code below to insert a filter in a specific
| cell, but it puts the filters in row 2 all used cells ? Am i doing
| something wrong ?
|
| Range("E18").AutoFilter
|
|
| Best regards,
|
| Les Stout
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top