I'm trying to update an Excel spreadsheet using VBA in an Access database.
I'm opening the spreadsheet like this:
Set ExcelApp = CreateObject("Excel.Application")
Set ExcelWkb = ExcelApp.Workbooks.Open(Addr)
Set ExcelSht = ExcelWkb.Worksheets(WkSheet)
Where Addr is the path to the spreadsheet and WkSheet is the specific worksheet I need to update.
When attempting to "SaveAs" after making the updates, I get an error indicating that the spreadsheet is "Read Only" and the changes are not saved.
If I change the Syntax to "Save", a "Copy of..." is saved.
Any ideas?
I'm opening the spreadsheet like this:
Set ExcelApp = CreateObject("Excel.Application")
Set ExcelWkb = ExcelApp.Workbooks.Open(Addr)
Set ExcelSht = ExcelWkb.Worksheets(WkSheet)
Where Addr is the path to the spreadsheet and WkSheet is the specific worksheet I need to update.
When attempting to "SaveAs" after making the updates, I get an error indicating that the spreadsheet is "Read Only" and the changes are not saved.
If I change the Syntax to "Save", a "Copy of..." is saved.
Any ideas?