Hi Champs,,
I have to filter a range by deselecting a value, say "100"
i used the below code..
Range("rng1").AutoFilter Field:=1, Criteria1:="<>100", Operator:=xlAnd
but it doesnot worked. please help me
Hi Champs,,
I have to filter a range by deselecting a value, say "100"
i used the below code..
Range("rng1").AutoFilter Field:=1, Criteria1:="<>100", Operator:=xlAnd
but it doesnot worked. please help me
What is "rng1" ?
It can't be a named range, as it refers to a single cell.
Is it a range variable? In which case, your code should be:
![]()
Please Login or Register to view this content.
let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source
If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE
Walking the tightrope between genius and eejit...
it doesnot work
my entire code is below
Dim rng1 As Range
Set rng1 = Application.ActiveSheet.UsedRange
rng1.AutoFilter Field:=1, Criteria1:="<>009"...
i have 009 value in many cells.
pls help.
Try this:
![]()
Please Login or Register to view this content.
Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.
Remember to desensitize the data.
Click on GO ADVANCED and use the paperclip icon to open the upload window.
View Pic
yes it worked.. got through record macro. thanks anyway.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks