Good day everyone, I have a small fleet of Excel apps who, sometime, need updating. For modules, I simply ThisWorkbook.VBProject.VBComponents("WhateverModule").Export tempFile DestWbk.VBProject.VBComponents.Import tempFile Kill (tempFile)
But I can not use the same code to import into ThisWorkbook as I do for modules. ThisWorkbook.VBProject.VBComponents("ThisWorkbook").Export tempFile DestWbk.VBProject.VBComponents.Import tempFile Kill (tempFile) Instead of replacing (or adding) the code within ThisWorkbook, it creates a new Class Modules named "ThisWorkbook1". Do you have any suggestion on how could I fix that? The only other solution is to manually set all my events to something static refering to a module. Thank you -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 7000 subscribers worldwide and receive many nice notes about the learning and support from the group.Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe