Thread: [Solved] Command Button
View Single Post
 
Old 02-03-2011, 07:28 AM
cksm4 cksm4 is offline Windows XP Office 2007
Advanced Beginner
 
Join Date: Aug 2010
Posts: 48
cksm4 is on a distinguished road
Default Command Button

Hello,

I have a quick part that inserts a table that includes a command button. The problem is that the new command button gets renamed if i already exists (i.e. CmdDoAction1 gets renamed CmdDoAction2... and so on). Now the on click code for CmdDoAction1 will not run for CmdDoAction2. The only solution I can think of is using a macro that runs when all command buttons are pressed and then focusing on the name of the button. Any ideas?

Thanks!
Brock
Reply With Quote