jerryfchui
07-09-2001, 09:32 PM
I've success in creating and saving a new Excel workbook using VBA codes.
But when the system detects a file with the same name it always pops up a warning message from Excel, prompting the user whether to overwrite the file or not. I don't want that. I simply want it to overwrite without warning. This gives me some headache.
I'd tried the Excel workbook method wrkbookx.saveAs("filename", True) and I am aware of setting the property called "AlertBeforeOverwriting" of an Excel Application object to False. Neither works.
Who has this experience? Some short sample codes will help.
But when the system detects a file with the same name it always pops up a warning message from Excel, prompting the user whether to overwrite the file or not. I don't want that. I simply want it to overwrite without warning. This gives me some headache.
I'd tried the Excel workbook method wrkbookx.saveAs("filename", True) and I am aware of setting the property called "AlertBeforeOverwriting" of an Excel Application object to False. Neither works.
Who has this experience? Some short sample codes will help.