Hello Tommy,
Using the Add-in is good idea since the Add-in can be locked for viewing. If you plan to distribute your workbook that calls the Add-in macros then the Add-in will always have to accompany your main workbook. This applies to emails if the recipient needs to run the workbook.
Add-in macros don't show up in the Macro List dialog (in Excel press ALT+F8 to display it). This isn't a problem because you created the Add-in and know what macros are available. To use them you must qualify the macro name with the Add-in workbook name.
When writting macros for your Add-in remember the ThisWorkbook refers to the Add-in workbook. To refer to the user's workbook use ActiveWorkbook. If any of your sheets are protected, display a dialog asking the user to remove the sheet protection. Don't do this from the Add-in. Lastly, you will have to add error handling to the Add-in code. If the user workbook doesn't match with what you expect to be there then you need to alert the user or trap the potential error.
Sincerely,
Leith Ross
Bookmarks