Recommended to catalog code

atf32

Board Regular
Joined
Apr 13, 2011
Messages
157
What are some common practices to cataloging VBA code for future reference?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Best to download and store in plain text files, i.e., as source code. Use a .BAS extension.

If all you want to do is have a repository of routines, store these .BAS files in a single directory. You may also want to add comments beginning with 'keywords: and synopsis: at the top of each file in order to make searching easier. For the first, add a few keywords after the colon, e.g., for a Sieve of Eratosthenes function, maybe the keywords sieve Eratosthenes prime. For the second, add a brief description after the colon.

If you also want to track any changes you may make, you may want to consider a revision control system/versioning system. Myself, I only trust plain vanilla RCS, and I use commandline tools to maintain source code, including VBA. I'm odd that way. You may prefer GUI systems. I can't recommend any.
 
Upvote 0

Forum statistics

Threads
1,225,611
Messages
6,185,996
Members
453,334
Latest member
Prakash Jha

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