I got following code :
Works great in Excel97 but gives error 9 in excel2003 on the red line. All workbooks and sheets exists. (it does open the workbook)
any ideas ?
Dave
Code:
origpad = ThisWorkbook.Path
Workbooks.Open (origpad & "\Myfile2.xls")
[COLOR=red]With Workbooks("Myfile2").Sheets("Data")[/color]
' just doing my stuff here in the Myfile2 workbook
...
End With
Workbooks("Myfile2").Save
Workbooks("Myfile2").Close
Works great in Excel97 but gives error 9 in excel2003 on the red line. All workbooks and sheets exists. (it does open the workbook)
any ideas ?
Dave