- Katılım
- 29 Ağustos 2008
- Mesajlar
- 9
- Excel Vers. ve Dili
- 2003
- Altın Üyelik Bitiş Tarihi
- 19.06.2019
Merhabalar VBA dan pek anlamıorum aşağıdaki hataları düzeltebilirseniz birde yeşil yazılar konusunda yardımcı olursanız sevinirim...gerekirse ayrıntı verebilirim ama umarım bu kadarı yeterli olur..
Private Sub CommandButton2_Click()
Dim c As Range
Dim IT As String
Dim firstadress
Dim satir As Integer
With Sheets("sheet1").Range("Q:S")
Set c = .Find(IT, LookIn:=xlValues, lookat:=xlPart)
'IT yerine koyacağımız bir textboxa yazdığımız değerin yazılmasını istiyoruz '
If Not c Is Nothing Then
firstadress = c.Address
Do
c.Now = IT
For i = 1 To 100
Sheets ("sheet2")Cells(satir, i).Value
next=sheets.("sheet1")cells (c.Row,i).value
Set c = .FindNext(c)
loop while not c is nothing and
c.Address < > firstadress
End If
End With
Private Sub CommandButton2_Click()
Dim c As Range
Dim IT As String
Dim firstadress
Dim satir As Integer
With Sheets("sheet1").Range("Q:S")
Set c = .Find(IT, LookIn:=xlValues, lookat:=xlPart)
'IT yerine koyacağımız bir textboxa yazdığımız değerin yazılmasını istiyoruz '
If Not c Is Nothing Then
firstadress = c.Address
Do
c.Now = IT
For i = 1 To 100
Sheets ("sheet2")Cells(satir, i).Value
next=sheets.("sheet1")cells (c.Row,i).value
Set c = .FindNext(c)
loop while not c is nothing and
c.Address < > firstadress
End If
End With