Using a Master Sheet to update code on multiple workbooks

UMAKEMESIK

Active Member
Joined
Oct 3, 2005
Messages
378
We use an excel form with tons of code in it. The sheet performs many tasks as needed. Everyone her has a copy of the form on their desktop. When I make changes to the code when I am upgrading I have to do a mass distribution of the newly revised form and ask all to delete previous used versions.

Can I have one master sheet on a public server that i will update the code on and the users will have their from on their desktop that will call to the master sheet for the visual basic code. This way I never have to re-distribute the form to all users. All i have to do is update the master sheet on the server and the users sheet will use the latest code on that sheet.

This is like CSS Cascading Style Sheets in Web page building. You produce one master sheet and all other pages use the CSS for its instructions on formating.

Any Ideas would be appreciated.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Can't give specifics, but you should be able to do this via "automating the VBE". Do some searches on that term and it should point you in the right direction.

Big note, if you have password protected the VBE module then I don't think you can do it.

I imagine you would institute a version system in a hidden sheet in everyone's workbook. They click a button and the macro queries your master copy and pulls its version number, then it compares versions, if theirs is old, then it kicks off the copy-replace routine.
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,183
Members
452,893
Latest member
denay

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