G
Guest
I built a simple "backup" module within an existing Excel file. The backup
module simply makes a copy of the open workbook using the SaveCopyAs method.
The backup module runs fine. The problem is that after the SaveCopyAs method
is run, I save and close the original workbook. The next time I try to open
the original workbook, I get "Unable to read file" after choosing to enable
macros.
here's the sequence of events:
open original workbook (after having run SaveCopyAs method in VBA when open
previously)
choose enable macros
"unable to read file" error occurs
choose enable macros again (not sure why prompted a 2nd time)
workbook opens with a message saying that repairs have been made
repairs consist of two pivot tables being removed due to corruption
This Excel workbook has been functioning fine for some time until this
backup module was created & run. Running Excel 2003 SP1 on WinXP. Maybe
something in my ThisWorkbook.Open event is triggering although nothing has
changed there? BTW, the backup copy created by SaveCopyAs opens fine, no
errors/repairs.
Any thoughts/suggestions? I've searched both this site and MS KB.
thanks
Dfarns
module simply makes a copy of the open workbook using the SaveCopyAs method.
The backup module runs fine. The problem is that after the SaveCopyAs method
is run, I save and close the original workbook. The next time I try to open
the original workbook, I get "Unable to read file" after choosing to enable
macros.
here's the sequence of events:
open original workbook (after having run SaveCopyAs method in VBA when open
previously)
choose enable macros
"unable to read file" error occurs
choose enable macros again (not sure why prompted a 2nd time)
workbook opens with a message saying that repairs have been made
repairs consist of two pivot tables being removed due to corruption
This Excel workbook has been functioning fine for some time until this
backup module was created & run. Running Excel 2003 SP1 on WinXP. Maybe
something in my ThisWorkbook.Open event is triggering although nothing has
changed there? BTW, the backup copy created by SaveCopyAs opens fine, no
errors/repairs.
Any thoughts/suggestions? I've searched both this site and MS KB.
thanks
Dfarns