| |
abhvar
Posts: 7
Score: 0
Joined: 4/27/2008
Status: offline
|
Hi, Here's my script. The problem I am facing is i need to make 2 selections in autofilter one being CM and other CR. But what is the synatx for selecitng both in the autofilter in vbscript. Could anybody please help me with it. Dim objExcelInput Dim objSheetInput Dim MyInputFile Set objExcelInput = CreateObject("Excel.Application") MyInputFile = "C:\APD_Customer.xls" objExcelInput.Workbooks.open MyInputFile Set objSheet = objExcelInput.ActiveWorkbook.Worksheets(1) objExcelInput.worksheets("Sheet1").Range("A1").AutoFilter 12, "CM" objExcelInput.WorkBooks.close
|
|