Hello All,

I have recently been working on a form which has its buttons added at runtime. It works well except for one problem. Suppose I am debugging one of the procedures that are called from the buttons. I insert a break point in the VBA editor. When the code reaches the breakpoint, VBA displays a message "Can't enter break mode at this time"

This is frustrating and I want to find a way around this (so that breakpoints still work).

I have tried googling the problem - the problem appears to be well known (although most of the discussions revolve around adding controls to a worksheet at runtime) but I can't find any definite solution.

Any help would be appreciated.