currently using this code...
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open _
("C:\Tmp\default.xls")
want to use wildcard like this..
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open _
("C:\Tmp\*.xls")
but does not work. Here is all the code..
Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate "IE.Visible = True
Wscript.Sleep 3000
IE.Document.All.Item("Button1").Click
Wscript.Sleep 3000
' create object
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open _
("C:\Tmp\*.xls")
'save the tmp xls file
objWorkbook.SaveAs "C:\RFI_XLS_Temp\test.xls"
'close xls
objExcel.Application.Quit
'open the saved xls file
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open("C:\RFI_XLS_Temp\test.xls")
Wscript.Sleep 2000
'Close Excel
objExcel.Application.Quit
objExcel.Quit
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open _
("C:\Tmp\default.xls")
want to use wildcard like this..
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open _
("C:\Tmp\*.xls")
but does not work. Here is all the code..
Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate "IE.Visible = True
Wscript.Sleep 3000
IE.Document.All.Item("Button1").Click
Wscript.Sleep 3000
' create object
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open _
("C:\Tmp\*.xls")
'save the tmp xls file
objWorkbook.SaveAs "C:\RFI_XLS_Temp\test.xls"
'close xls
objExcel.Application.Quit
'open the saved xls file
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open("C:\RFI_XLS_Temp\test.xls")
Wscript.Sleep 2000
'Close Excel
objExcel.Application.Quit
objExcel.Quit