Hi again,
I don't have Excel installed on this machine (it's not mine!) so I'm not able to test what I'm about to suggest - here's hoping!
Your code:
creates a copy of your master workbook.
To delete everything except "mySheet" use:
However, if I've understood you correctly, you want to avoid your users being presented with the "This workbook contains macros ..." dialog box. The workbook WILL contain code, so I don't think you can avoid the message being generated by Excel.
Hope this helps - please let me know how you get on.
Regards,
Greg M
Bookmarks