Saving Workbook as an AddIn

HighAndWilder

Well-known Member
Joined
Nov 4, 2006
Messages
712
Office Version
  1. 365
Platform
  1. Windows
Hi All

I'm just exploring using Add-In's to slowly build up a Function Library.

Do please tell me if this is not the right way to go but the idea I have is to save the macro enabled workbook as an Add-In when I close the workbook.

I have recorded a macro and notice that whilst code is recorded to save the workbook as a macro enabled workbook the code to save the workbook as an Add-In is missing. The ChDir line to change the folder to the default Add-In folder is there though.

Is there a valid reason why this is the case?

Is there a way around this problem if it is indeed a problem?

How do others manage Add-In's?

Thanks and I hope that you are all having a good day.

HighAndWild
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
My understanding is that addins are best used for things like major projects where you may need to maintain code for a group without having to go to every pc or recalling workbooks.

The thing you are trying to do is probably best kept in a functions module in your personal workbook.
 
Upvote 0
Why do you need to use code to save the workbook as an add-in? Even if you do, just add a line to do that.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top