Hello,
I have created a macro in access which runs an access sql statement, puts the results in an excel sheet and saves the workbook. when my code tries to delete the excess worksheets, I get a messagebox asking to confirm the delete. I would not like to get this.
I tried using the code Application.DisplayAlerts = False, but when I try to run the macro, I get an error saying - "Method or Data member not found".
Is this the wrong snippet to use in this circumstance?
Thanks in advance.
cmz
I have created a macro in access which runs an access sql statement, puts the results in an excel sheet and saves the workbook. when my code tries to delete the excess worksheets, I get a messagebox asking to confirm the delete. I would not like to get this.
I tried using the code Application.DisplayAlerts = False, but when I try to run the macro, I get an error saying - "Method or Data member not found".
Is this the wrong snippet to use in this circumstance?
Thanks in advance.
cmz