- Katılım
- 7 Ağustos 2019
- Mesajlar
- 106
- Excel Vers. ve Dili
- İngilizce
Me.textbox3. Ne olursa textboxun değerini nasıl seçebilirim
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub CommandButton1_Click()
With TextBox3
.SetFocus
.SelStart = 0
.SelLength = Len(.Text)
End With
End Sub
Teşekürler ????Kod:Private Sub CommandButton1_Click() With TextBox3 .SetFocus .SelStart = 0 .SelLength = Len(.Text) End With End Sub
merhaba hocam çalışmadı malesefKod:Private Sub CommandButton1_Click() With TextBox3 .SetFocus .SelStart = 0 .SelLength = Len(.Text) End With End Sub
Private Sub TextBox3_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Dim k As Range, sat As Integer
If UserForm1.TextBox3.Value = "" Then
TextBox13 = ""
TextBox23 = ""
TextBox33 = ""
Else
sat = Workbooks("parekende satış.xlsm").Sheets("Stok").Cells(Rows.Count, "b").End(xlUp).Row
Set k = Workbooks("parekende satış.xlsm").Sheets("Stok").Range("b2:b" & sat).Find(UserForm1.TextBox3.Value, , xlValues, xlWhole)
If k Is Nothing Then
MsgBox "Girdiğiniz stok kodu yanlıştır lütfen kontrol ediniz", vbInformation
With TextBox3
.SetFocus
.SelStart = 0
.SelLength = Len(.Text)
End With
Else
Me.TextBox13.Text = k.Offset(0, 1)
Me.TextBox23.Text = k.Offset(0, 6)
Me.TextBox33.Text = k.Offset(0, 4)
End If
End If
End Sub