- Katılım
- 27 Şubat 2008
- Mesajlar
- 307
- Excel Vers. ve Dili
- Office 2016
Benim aşağıdaki kodlardan oluşan bir sayfa temizleme butonum var. Sıkınıtım yok ama tüm userformu temizliyor. Ben mesala frame3 ile combobox5 i ve textbox 3 ü temizlemesin diğerlerini temizlesin istiyorum. Bunun için kodların neresinde değişiklik yapacağım yardımcı olabilirmisiniz. Teşekkürler.
Private Sub CommandButton1_Click()
SAY = Controls.Count
For i = 0 To SAY - 1
X = TypeName(Controls(i))
If X = "TextBox" Then Controls(i) = ""
If X = "ComboBox" Then Controls(i) = ""
If X = "CheckBox" Then Controls(i).Value = False
Next i
End Sub
Private Sub CommandButton1_Click()
SAY = Controls.Count
For i = 0 To SAY - 1
X = TypeName(Controls(i))
If X = "TextBox" Then Controls(i) = ""
If X = "ComboBox" Then Controls(i) = ""
If X = "CheckBox" Then Controls(i).Value = False
Next i
End Sub
