- Katılım
- 18 Ocak 2008
- Mesajlar
- 12,878
- Excel Vers. ve Dili
- 2003 excell türkçe
ve
2007 excell türkçe
Sn halit teşekkürler,
bu satırı kaldırdım,Kod:' ' ThisWorkbook.VBProject.VBComponents.Remove VBComponent:=form
yalnız formu kapatıp açınca CommandButton lar form üzerinde olmasına karşın, msgbox komutu tekrar çalışmıyor.
Kod:Sub CommandButton1_Click() Dim Kontrol As Control For Each Kontrol In UserForm1.Controls If TypeName(Kontrol) = "CommandButton" Then say2 = say2 + 1 ReDim Preserve CommandButton(1 To say2) Set CommandButton(say2).CommandButtonGrup = Kontrol End If Next UserForm1.Show End Sub
