Hello.
I need open XLS file and add "filter"/"autofilter" columns.
Could you help me with this ?
but it doesnt work
could you help me ?
I need open XLS file and add "filter"/"autofilter" columns.
Could you help me with this ?
Code:
Function OK()
Const ForReading = 1
Const ForWriting = 2
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
Set objFile = bjFSO.objExcel("C:\07-05-2012.xls", ForReading)
Excel.Range("A1:Z23").Autofilter
Set objFile = objFSO.objExcel("C:\Result.xls", ForWriting)
objFile.Write strNewContents
objFile.Close
Set objFile = Nothing
Set objFSO = Nothing
End Function
but it doesnt work
could you help me ?