Command button added at runtime fails to respond to code

Glory

Well-known Member
Joined
Mar 16, 2011
Messages
640
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p> </o:p>I’ve created a userform. The userform’s initialize event adds a command button and names it “Command”. The userform’s object module includes a sub “Command_Click”, but nothing happens when I click the command button. What’s going wrong?
 

Some videos you may like

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Watch MrExcel Video

Forum statistics

Threads
1,108,810
Messages
5,525,010
Members
409,615
Latest member
papaluigi94

This Week's Hot Topics

Top