I've never had this, so I can only speculate, you're trying to debug code whilst automating the IDE, trying to do two things at once sounds like a recipe for disaster so at a guess MS have stopped you doing it to prevent you doing any damage/save headaches.
Since my code doesn't attempt to automate the IDE (and I can't actually think of an actual instance where I'd want to do so, except for maybe making an add-in to make development easier, something like MZTools), this scenario never occurs.
Why do you care what the buttons are called? You reference them by location in the collection
Indeed, I'm not doing it all for youbesides I can't even see what you're trying to do since I can't run your code as I've no intention of allowing trusted access to the VBA project.
Learn them instead of trying to automate the IDE, they're far more useful, less hacky and not really complicated. Automating the IDE is nastyyou've done UDTs now, you've got no excuse...
Bookmarks