DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Explicit
Private Sub CommandButton1_Click()
With Range("A1")
.Value = TextBox1
.Borders.LineStyle = 1
.HorizontalAlignment = xlCenter
End With
End Sub
Selamlar,
Aşağıdaki kodu kullanabilirsiniz.
Kod:Option Explicit Private Sub CommandButton1_Click() With Range("A1") .Value = TextBox1 .Borders.LineStyle = 1 .HorizontalAlignment = xlCenter End With End Sub
For k = 1 To 7
sh.Cells(sat, k).Value = Me.Controls("Textbox" & k).Text
sh.Cells(sat, k).Borders.LineStyle = 1
sh.Cells(sat, k).HorizontalAlignment = xlCenter
If IsNumeric(sh.Cells(sat, k).Value) Then sh.Cells(sat, k).Value = sh.Cells(sat, k).Value * 1
Next
Selamlar,
CommandButton1 nesnesindeki "k" döngüsünü aşağıdaki şekilde değiştirip deneyin. Sanıyorum ihtiyacınızı karşılar.
Kod:For k = 1 To 7 sh.Cells(sat, k).Value = Me.Controls("Textbox" & k).Text sh.Cells(sat, k).Borders.LineStyle = 1 sh.Cells(sat, k).HorizontalAlignment = xlCenter If IsNumeric(sh.Cells(sat, k).Value) Then sh.Cells(sat, k).Value = sh.Cells(sat, k).Value * 1 Next