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
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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

Forum statistics

Threads
1,225,385
Messages
6,184,646
Members
453,250
Latest member
unluckyuser

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