Best way to recycle code?

ExcelNewb09

Board Regular
Joined
Jan 1, 2009
Messages
84
Mornin'

Have a question for ya'll out there who do this a little bit more than me. I was wondering what (in your opinion) is the best way to recycle code?

Say I have a couple of generic functions, or macros that I use often; what's the best way of storing those so that other workbooks, or other macros in those workbooks can call them?

Just wanting to see if anyone had best practices, or a method they use pretty successfully.

Thanks
 
I create modules in VBAProject(PERSONAL.XLS) and use them to store any code that I thought I could reuse.

For instance, I have a module (modDelete) that stores lots of methods of (you've guessed it) deleting things.
 
Upvote 0

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