I have inherited some workbooks from a coworker that left. Needless to say they are not documented. So I have done some VBA coding and can debug most of it. But, I cannot get a handle on what is probably a very basic understanding. When I open a workbook (.XLSM) nothing happens. That is, the code behind it never runs. There are no buttons in many of these workbooks to activate the code. I can, of course, open the code window and click the run button to make it happen, but these would, in my understanding, do their thing just by opening it and in fact run at regular intervals while open.
This is something I've never understood about coding in Excel. How to make the code "start" without a button to kick it off. I don't really understand the structure either. I have, in the left window a tree consisting of the sheets in the workbook, followed by a "modules" section with some numbers of modules below it. I find no code in the sheet section, only in the module section. How exactly does that work?
This is probably a result of learning to code ***-backwards, that is having a problem and copy/pasting/modifying code to make it work. So I have never really gained an understanding of the structure behind it. Any pointers would be appreciated.
I'm thick skinned, so feel free to have some fun at my expense if I'm missing something obvious...
Jim
This is something I've never understood about coding in Excel. How to make the code "start" without a button to kick it off. I don't really understand the structure either. I have, in the left window a tree consisting of the sheets in the workbook, followed by a "modules" section with some numbers of modules below it. I find no code in the sheet section, only in the module section. How exactly does that work?
This is probably a result of learning to code ***-backwards, that is having a problem and copy/pasting/modifying code to make it work. So I have never really gained an understanding of the structure behind it. Any pointers would be appreciated.
I'm thick skinned, so feel free to have some fun at my expense if I'm missing something obvious...
Jim