DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub test3()
Dim a As Byte, b As Byte, c As Byte
Dim d As Byte, e As Byte, f As Byte
Dim s As Long, arr(1 To 65536, 1 To 6) As Integer
Dim m As Byte
m = 8
Columns("h:iv").ClearContents
For a = 1 To [a1]
For b = 1 To [b1]
For c = 1 To [c1]
For d = 1 To [d1]
For e = 1 To [e1]
For f = 1 To [f1]
s = s + 1
arr(s, 1) = a
arr(s, 2) = b
arr(s, 3) = c
arr(s, 4) = d
arr(s, 5) = e
arr(s, 6) = f
If s = 65536 Then
Range(Cells(1, m), Cells(65536, m + 5)) = arr
s = 0
m = m + 7
Erase arr
End If
Next
Next
Next
Next
Next
Next
Erase arr
End Sub
Sub carp()
Dim x, y, z As Long
For x = 4 To [A65536].End(3).Row
z = 1
For y = 1 To Rows(x).End(2).Column
Set bul = Sheets("Sayfa2").Columns(z).Find(Cells(x, y).Value, lookat:=xlWhole)
If Not bul Is Nothing Then
Cells(x, y).Value = bul.Next * Cells(x, y).Value
z = z + 2
End If
Next
Next
End Sub
Merhaba,
Hız mükemmel...
Kod:Sub test3() Dim a As Byte, b As Byte, c As Byte Dim d As Byte, e As Byte, f As Byte Dim s As Long, arr(1 To 65536, 1 To 6) As Integer Dim m As Byte m = 8 Columns("h:iv").ClearContents For a = 1 To [a1] For b = 1 To [b1] For c = 1 To [c1] For d = 1 To [d1] For e = 1 To [e1] For f = 1 To [f1] s = s + 1 arr(s, 1) = a arr(s, 2) = b arr(s, 3) = c arr(s, 4) = d arr(s, 5) = e arr(s, 6) = f If s = 65536 Then Range(Cells(1, m), Cells(65536, m + 5)) = arr s = 0 m = m + 7 Erase arr End If Next Next Next Next Next Next Erase arr End Sub
sayın meslan bu makroyu diğer makroyla birleştirmemiz mümkün mü?Bir de bu makroyu çalıştırmaya çalıştım sayfa 2 deki olmayan bi değeri atadı onuda anlayamadım.Merhaba
Kod:Sub carp() Dim x, y, z As Long For x = 4 To [A65536].End(3).Row z = 1 For y = 1 To Rows(x).End(2).Column Set bul = Sheets("Sayfa2").Columns(z).Find(Cells(x, y).Value, lookat:=xlWhole) If Not bul Is Nothing Then Cells(x, y).Value = bul.Next * Cells(x, y).Value z = z + 2 End If Next Next End Sub
Sub test2()
[A4:IV65536] = Empty
Dim a As Byte, b As Byte, c As Byte
Dim d As Byte, e As Byte, f As Byte
Dim s As Long
Dim x As Long
x = 1
s = 4
For a = 1 To [a1]
For b = 1 To [b1]
For c = 1 To [c1]
For d = 1 To [d1]
For e = 1 To [e1]
For f = 1 To [f1]
Cells(s, x) = a
Cells(s, x + 1) = b
Cells(s, x + 2) = c
Cells(s, x + 3) = d
Cells(s, x + 4) = e
Cells(s, x + 5) = f
s = s + 1
If s = 65536 Then x = x + 7: s = 4
Next
Next
Next
Next
Next
Next
Dim x, y, z As Long
For x = 4 To [A65536].End(3).Row
z = 1
For y = 1 To Rows(x).End(2).Column
Set bul = Sheets("Sayfa2").Columns(z).Find(Cells(x, y).Value, lookat:=xlWhole)
If Not bul Is Nothing Then
Cells(x, y).Value = bul.Next * Cells(x, y).Value
z = z + 2
End If
Next
Next
End Sub
sayın meslan sizin yazdığınız kod şunu yapıyo herhalde
1 1 1 1 1 1 ilk ifademiz bu ya bunu sayfa 2 de buluyo 1 ile 1 in karşısındaki sayıyı çarpıyo
benim istediğim ise 1 in karşısındaki ifadeyi alacak diğer 1 in karşısındaki ifadeyle çarpacak yani sadece ondalık sayıları çarpacak.
Cells(i, y).Value = bul.Next * Cells(i, y).Value
Cells(i, y).Value = bul.Next * bul.Next.Next.Next
sayın meslan
teşekkür ederim ama olmadı . Herhalde ben tam anlatamadım ne yapmak istediğimi.
Ekteki dosyada anlattım bi bakabilirseniz çok sevinirim.
For i = 4 To [A65536].End(3).Row
z = 1
deg = 1
For y = 1 To Cells(i, "Iv").End(1).Column
Set bul = Sheets("Sayfa2").Columns(z).Find(Cells(i, y).Value, lookat:=xlWhole)
If Not bul Is Nothing Then
deg = deg * bul.Next
Cells(i, 7) = deg
Else
Cells(i, y).Font.ColorIndex = 3
End If
z = z + 2
If z = 13 Then z = 1
Next
Next
Sayın meslan,Bir de şunu dene
Kod:For i = 4 To [A65536].End(3).Row z = 1 deg = 1 For y = 1 To Cells(i, "Iv").End(1).Column Set bul = Sheets("Sayfa2").Columns(z).Find(Cells(i, y).Value, lookat:=xlWhole) If Not bul Is Nothing Then deg = deg * bul.Next Cells(i, 7) = deg Else Cells(i, y).Font.ColorIndex = 3 End If z = z + 2 If z = 13 Then z = 1 Next Next