I am opening an excel workbook with a macro. The opened workbook runs a "delete all code" procedure. That part is working great. But if I save the changes using the code below, when I reopen it, I get "do you wish to enable macros dialog box" (even though there is not any code).
If I close the workbook manually. When I reopen, I do not get the dialog box. Why is the save method causing this trouble? Thanks
Workbooks.Open Filename:="c:\temp\Book1.xls"
Workbooks("book1").Close SaveChanges:=True
If I close the workbook manually. When I reopen, I do not get the dialog box. Why is the save method causing this trouble? Thanks
Workbooks.Open Filename:="c:\temp\Book1.xls"
Workbooks("book1").Close SaveChanges:=True