TheEntertainer
MIS
Hello All,
Does anyone know if there is a limited to the number of commandbuttons you can add to a Excel Userform? I ask this because in Excel 2000 using the the toolbox I've added 6 commandbuttons, If I add a 7th and then view code for the 7th, while it opens the module it doesn't insert your "Private Sub CommandButton7_Click()" and "End Sub" text and if you look at the dropdown box on the top left which lists your objects it doesn't exist. However if I create another userform I can add more command buttons to that.
So in summary is there a from commandbutton per userform.
Thanks
![[afro] [afro] [afro]](/data/assets/smilies/afro.gif)
PS I should also add that I've got quite a few other textboxes, labels etc on the userform in question.
Does anyone know if there is a limited to the number of commandbuttons you can add to a Excel Userform? I ask this because in Excel 2000 using the the toolbox I've added 6 commandbuttons, If I add a 7th and then view code for the 7th, while it opens the module it doesn't insert your "Private Sub CommandButton7_Click()" and "End Sub" text and if you look at the dropdown box on the top left which lists your objects it doesn't exist. However if I create another userform I can add more command buttons to that.
So in summary is there a from commandbutton per userform.
Thanks
![[afro] [afro] [afro]](/data/assets/smilies/afro.gif)
PS I should also add that I've got quite a few other textboxes, labels etc on the userform in question.