I have a code that adds a simple button. I haven't pasted everything, but most important things (i.e. place where it breaks).
Line commented points to the error. I first get message can't enter break mode at this time and I press continue and get error application defined or object defined error - when I run it from excel (when I run it once again with debugger it says subscript out of range).Please Login or Register to view this content.
I've checked the code in another spreadsheet and it works. Another thing that I've noticed is that there is change in terms of active sheet between normal run and debugged run. In the first time a spreadsheet is selected that is right to the spreadsheet that I had another button that run the actual code. In the latter case a correct spreadsheet is selected where all the results are.
thx
Bookmarks