DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub CommandButton1_Click()
Set ekle = Me.Controls.Add("forms.label.1")
With ekle
.Top = 84 + Val(Me.Tag) * 18
.Left = Me.Label407.Left
.Width = Me.Label407.Width
.Height = Me.Label407.Height
.Font.Size = Me.Label407.Font.Size
.TextAlign = fmTextAlignLeft
.Caption = Val(Me.Tag) + 1 & " nolu oda"
End With
Set ekle = Me.Controls.Add("forms.label.1")
With ekle
.Top = 84 + Val(Me.Tag) * 18
.Left = Me.Label380.Left
.Width = Me.Label380.Width
.Height = Me.Label380.Height
.Font.Size = Me.Label380.Font.Size
.TextAlign = fmTextAlignLeft
.Caption = "mm"
End With
Set ekle = Me.Controls.Add("forms.textbox.1")
With ekle
.Top = 78 + Val(Me.Tag) * 18
.Left = Me.T1en.Left
.Width = Me.T1en.Width
.Height = Me.T1en.Height
.Font.Size = Me.T1en.Font.Size
End With
Set ekle = Me.Controls.Add("forms.textbox.1")
With ekle
.Top = 78 + Val(Me.Tag) * 18
.Left = Me.T1boy.Left
.Width = Me.T1boy.Width
.Height = Me.T1boy.Height
.Font.Size = Me.T1boy.Font.Size
End With
Set ekle = Me.Controls.Add("forms.textbox.1")
With ekle
.Top = 78 + Val(Me.Tag) * 18
.Left = Me.TextBox3.Left
.Width = Me.TextBox3.Width
.Height = Me.TextBox3.Height
.Font.Size = Me.TextBox3.Font.Size
.SpecialEffect = 3
End With
Me.Tag = Me.Tag + 1
Set ekle = Nothing
End Sub
Private Sub UserForm_Initialize()
Me.Tag = 4
End Sub
ben bu kodu her textbox için yapıyorum ama eklenecek textboxlar için nasıl yazmam gerekir?Private Sub T1boy_Change()
TextBox1.Value = Val(T1en) * Val(T1boy)
TextBox2.Value = Val(T2en) * Val(T2boy)
TextBox3.Value = Val(T3en) * Val(T3boy)
TextBox4.Value = Val(T4en) * Val(T4boy)
End Sub