04-12-2011, 10:12 AM
(This post was last modified: 04-12-2011, 10:12 AM by venkatbatchu.)
Hi charan,
As per my understand,
I understood that you are looking for filter option in excel (List as per you terminology).
Regards,
Venkat.Batchu
As per my understand,
I understood that you are looking for filter option in excel (List as per you terminology).
Code:
set objExcel=Createobject("Excel.Application")
set objWorkbook=objExcel.Workbooks.open("D:\venkat.xls")
set objworksheet=objExcel.worksheets("sheet1")
objworksheet.cells(1,1).autofilter
objworksheet.cells(1,1).autofilter 1,"99" 'It will filter the values w.r.t 99
objworksheet.cells(1,1).autofilter 2,"batchu"
objworksheet.cells(1,1).autofilter 1,"2"
set objExcel=Nothing
set objWorkbook=Nothing
set objworksheet=Nothing
Regards,
Venkat.Batchu