Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Filter multiple columns in excel
#1
Not Solved
Hi,
I want to filter multiple values of a particular column, i'm able to do only for one column
Ex:
Code:
Value1 = "Hello"
Value2 = "World"
ExcelSheets1.Range("J1").AutoFilter 10, V1, 2, V2
In the above line of code, I need to V1 and V2 during runtime which could be more, when i'm trying to concatenate V1,2,V2 and put as a string it is not working, the 2 should be considered as numeric value to act as "Or" operator but instead it is considered as string

The condition in the excel filter looks like "Hello,2,World" as one string and no records are fetched
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Comparing two unsorted excel columns ProTester 2 2,475 09-13-2018, 02:11 PM
Last Post: ProTester
  How to Delete Rows with duplicate values in 1 columns in excel thru QTP. arpan 0 2,588 02-09-2015, 08:47 PM
Last Post: arpan
  How to get center data value in a odd number of rows and columns web table ... sai rajesh 0 2,598 11-13-2013, 10:24 PM
Last Post: sai rajesh
  Not able to read all the columns in a DevEx WPF grid srisrinath2006 1 2,841 05-10-2013, 03:45 AM
Last Post: sria123
  Does QTP support writing runtime data to multiple sheets in excel Shwethareddy 2 3,531 10-16-2012, 12:20 PM
Last Post: Shwethareddy

Forum Jump:


Users browsing this thread: 1 Guest(s)