Central VBA Code

Skybluekid

Well-known Member
Joined
Apr 17, 2012
Messages
1,231
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I create a lot of files, approx. 300-400, using Excel and they are stored on Sharepoint(Teams interface). In the files, I have various bit of VBA in each file.

The issue I am having is when I update the VBA, I have to go into all the files and update that bit of VBA. Is there a way to store the VBA in a central file and have each of the file reference the central file for the VBA. This way, when I update the code, all files will be updated.

Thanks in Advance.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi @MikeVol ,

That is not really an option, I was thinking along the lines of a central file on Teams with the VBA Code and then the satellite files all referencing that file.
 
Upvote 0
The way I have done that is to create my own VBA Addin, then install that on each computer, or in my case give the users the instructions on how to install the addin on their machine. When I update the code I send then the new addin and they just copy it to the addin location. Whether this works with 365 I don't know, I have avoided using 365
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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