What are the ways to share VBA code?

bhinangt

New Member
Joined
Mar 21, 2017
Messages
36
One I can think of is .exe. But is it possible to make exe?

Other could be add-in, again how to distribute is a question.

WHAT ARE THE OTHER WAYS OF DISTRIBUTION AND SOLUTION IF ANY?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi,

You can export the modules. Right click on the Module name in the "VBAProject" and choose "Export File...". You will be prompted to choose a "Save" location. The module will be saved with the file extension of .bas, so Module1 wil be saved as Module1.bas

The problem with this though is that if your distribution method is going to be email then you must change the extension from bas to something else (I use bak), because most Email clients will prevent you from sending or receiving a file with a bas extension. The email recipient can then save the file on their on machine as a bas or as is and then rename it and change the extension back to bas.

You can take that bas file and drag and drop it into the VBE/VBAProject of any workbook.

I hope this helps.
 
Upvote 0

Forum statistics

Threads
1,223,794
Messages
6,174,643
Members
452,575
Latest member
Fstick546

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