- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys, I'm more or less self taught in VBA and have written dozens of scripts over the last 3 years. One of the things I've found is that as your writing speed increases it seems the number of subs you write seems to be the square of your increase... in short, I've got a lot of modules in Inventor and have been working to organize them to reduce copy/pasting of code to help make a more dynamic environment. As of a week ago the list of modules in Inventor was simply 'Module 1, Module 2, etc... " and I decided it would be a good idea to start renaming the modules for the function they're used for. While this should make life a little easier in some aspects it actually screwed up the implementation of macros in the toolbar quite a bit... Posted is a snip of the now-renamed modules in the ApplicationProjects and after that is the toolbars customization to add the macros to the toolbar which you can see is essentially the modules in ApplicationProjects except doubled. My first question is if there's a way to un-dock(?) the macros from the toolbars customization and then re-dock(?) them so that the list of macros only shows what's in the ApplicationProjects as opposed to what is in and what used to be?
Secondly some subroutines are simply copies of previous subroutines with certain options enabled or commented out and wanted to make sure the proper/sensible way to do this is to re-write all those options as private subs within one public sub so that you're just calling that option in different subs?
Lastly I assume that you generally want to name your module at inception so you don't end up in situations like the toolbar customization? Doesn't seem to make much sense having module1, module2 when you have the option to rename them...
Solved! Go to Solution.