Application.Workbooks.Open("C:\\Data\\workbook1.xls");
oWB.SaveAs("C:\\Reviewed\\Workbook1.xls");
It hits the saveline and tells meNullReferenceException was unhandled?
And nothing is null that is what has me baffled! The directory exists that I am trying to save to as well.
Loading
richard smithPosted Feb 13, 2013, 12:50 PM
I modified the code to read:
Application.Workbooks.Open("C:\\Data\\workbook1.xls");
oWB = Application.ActiveWorkbook;
oWB.SaveAs("C:\\Reviewed\\Workbook1.xls");
And it now works :)