How to Create VBA Add-In with Shared Codes for All Excels?

Posted by StanFish on Stack Overflow See other posts from Stack Overflow or by StanFish
Published on 2012-04-15T11:26:20Z Indexed on 2012/04/15 11:29 UTC
Read the original article Hit count: 239

Filed under:
|
|
|

I'm writing VBA codes for multiple Excel spreadsheets, which will be shared with others from time to time. At some point I find there are lots of duplications in my works. So I want to find a way to share codes in a sort of Excel add-in, like the .xla file.

But when I tried to save the Excel file containing shared codes as .xla file, I got some problems:

  1. The file cannot be edit anymore after I save it in the default add-in folder
  2. If I move the .xls file to a folder other than the add-in folder, and open it directly - I cannot use its classes - which creates problems for sharing the codes

Any ideas to create add-ins in a flexible and powerful way please?

Thanks a lot for the help

© Stack Overflow or respective owner

Related posts about excel

Related posts about vba