Obviously, this is a very simple bit of code, tied to a button in my spreadsheet. If I close the document and re-open it, then try to click any of my buttons, I get the "Sub-procedure or procedure function not defined" error. If I then make any change in the code, undo it, then hit "save", I can go back into my spreadsheet and hit the button and everything works exactly the way it is supposed to.
Is there something not getting loaded when I open my spreadsheet? If so, what do I need to do to get it to load all of my macros/functions without me manually saving all of them off?
Code: Select all
Sub Kills()
Sheets("druids").Range("b3").Value = Sheets("druids").Range("b3").Value + 1
End Sub