LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default criteriarange not equal to

Hi
The following code works great for me
Cells.Select
Rows("1:1").Select
Selection.Insert Shift:=xlDown
Range("A1").Select
ActiveCell.FormulaR1C1 = "Test1"
Range("A1").Select
Selection.AutoFill Destination:=Range("A1:AL1"),
Type:=xlFillDefault
Range("A1:AL1").Select
Range("AR1").Select
ActiveCell.FormulaR1C1 = "Test10"
Range("AR2").Select
ActiveCell.FormulaR1C1 = "0"
Range("AR3").Select
ActiveCell.FormulaR1C1 = "neg"


Columns("J:J").Select
Range("J1:J500").AdvancedFilter Action:=xlFilterInPlace,
CriteriaRange:= _
Range("AR1:AR3"), Unique:=False

However what would the syntax be I I wanted to fing all records not
equal to O and neg.
I have tried CriteriaRange:< but to no avail.

Thanks
Eddie
 
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
can I make cell "yes" equal 1, "no" equal 0 can I make cell yes equal 1, no equa Excel Discussion (Misc queries) 4 April 22nd 23 06:09 AM
CountIF(A9:A20, B9 not equal B10, B10 not equal B11, etc.) Red Herald Excel Worksheet Functions 2 November 13th 08 12:11 AM
How copy Criteriarange from uatofilter colun to another sheet? Valery Excel Programming 5 October 9th 07 02:28 PM
lower and upper case equal on spreadsheet but not equal in VB don Excel Programming 2 March 13th 05 12:04 AM


All times are GMT +1. The time now is 09:08 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"