Advanced Filter

jstevens
GoldLounger
Posts: 2631
Joined: 26 Jan 2010, 16:31
Location: Southern California

Advanced Filter

Post by jstevens »

I'm using VBA to perform an Advanced Filter and the results appear to be extracting more records than anticipated.

The extract contains all records whose name is LOG* (notice the wildcard). I just want records whose name is LOG.

Any suggestions?
Regards,
John

User avatar
HansV
Administrator
Posts: 78548
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Advanced Filter

Post by HansV »

Enter the following in the criteria cell:

'=LOG

The ' forces Excel to treat the value =LOG as text, not as a formula. You could also format the criteria cell as Text and enter

=LOG
Best wishes,
Hans