guys look at this code:
ExcelFile = "test.xls"
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.workbooks.open(ExcelFile)
when i run it I get "Object required objExcel" How is that possible I'm declaring the object at the beginning of the code ,any ideas...???
ExcelFile = "test.xls"
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.workbooks.open(ExcelFile)
when i run it I get "Object required objExcel" How is that possible I'm declaring the object at the beginning of the code ,any ideas...???