Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Macro/ custom filter, criteria="abc" or blank

Hi,

I write in a macro
ActiveSheet.Range("$B$5:$L$20000").AutoFilter Field:=2,
Criteria1:=FirmCriteria
then I should add also
" or the firms which have blank as value".

I tried to do it manually and do "record macro".
But I could not succeed even manually.
In manual way, I I tried some tricks like "less than 1" etc.
but could not succeed.

Thanks and regards,

Cousin Excel


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 376
Default Macro/ custom filter, criteria="abc" or blank

Hi

Try

ActiveSheet.Range("$B$5:$L$20000").AutoFilter Field:=2,
Criteria1:=FirmCriteria, Operator:=xlOr, Criteria2:="="


--
-------
Regards
Roger Govier

"CousinExcel" wrote in message
...
Hi,

I write in a macro
ActiveSheet.Range("$B$5:$L$20000").AutoFilter Field:=2,
Criteria1:=FirmCriteria
then I should add also
" or the firms which have blank as value".

I tried to do it manually and do "record macro".
But I could not succeed even manually.
In manual way, I I tried some tricks like "less than 1" etc.
but could not succeed.

Thanks and regards,

Cousin Excel



__________ Information from ESET Smart Security, version of virus
signature database 4873 (20100217) __________

The message was checked by ESET Smart Security.

http://www.eset.com




__________ Information from ESET Smart Security, version of virus signature database 4873 (20100217) __________

The message was checked by ESET Smart Security.

http://www.eset.com



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Filter - how to collapse "non-blank" cells in a column? marla Excel Discussion (Misc queries) 2 August 24th 08 10:03 PM
How do I filter "Blank" cells in Pivot Table Felipe Brochier Excel Discussion (Misc queries) 0 July 31st 06 02:16 PM
How to find "*" in Excel custom filter Amandasong Excel Discussion (Misc queries) 1 July 27th 06 04:41 AM
How do I use the criteria "is not blank" in a SUMIF formula? Pretender Excel Worksheet Functions 1 March 3rd 06 06:52 PM
Changing "returned" values from "0" to "blank" LATATC Excel Worksheet Functions 2 October 20th 05 04:41 PM


All times are GMT +1. The time now is 12:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"