• DİKKAT

    DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
    Altın Üyelik Hakkında Bilgi

Dinamik Çarpım makrosu

Katılım
16 Nisan 2008
Mesajlar
313
Excel Vers. ve Dili
Türkçe Microsoft Office Excel 2007
Değerli arkadaşlar,
förmül kullanmadan K23 e yazdığım bir sayı sonucu, K23*O23 çarpım sonucunu S23 e yazdırabilirmiyiz? Bu işlem sadece K23 e yazdığım sayı ile olmasını istiyorum, bu mümkün mü? Şimdiden teşekkür ederim.

Cells(23, 19) = Cells(23, 11) * Cells(23, 15)
 
Merhaba,
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("K23")) Is Nothing Then Exit Sub
Range("S23") = Range("K23") * Range("O23")
End Sub
kodu deneyiniz.
 
Muhammet Bey çalışmadı.
Ambiguous name detected: Worksheet_Change hatası verdi
 
Dosyayı inceleyiniz.
 
Son düzenleme:
hocam sorun aynı sayfada kullandığım 2 adet Worksheet_Change kodu. Kodum aşağıdadır. Bu kodu farklı sayfaya taşırsam, Aynı sayfa için olan [K17], [K18], [K19]..., gibi hücreleri xxx sayfasına taşırsam xxx sayfasında [K17], [K18], [K19].... hücreleri nasıl tanımlayabiliriz?

Kod:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [K17]) Is Nothing Then Exit Sub
    If [K17] <> "" Then
    Set BUL = Sheets("Biyosidaller").Range("H:H").Find([K17].Value, , , xlWhole, , xlNext)
        If Not BUL Is Nothing Then
        [K18] = Sheets("Biyosidaller").Range("A" & BUL.Row)
        [K19] = Sheets("Biyosidaller").Range("B" & BUL.Row)
        [K20] = Sheets("Biyosidaller").Range("F" & BUL.Row)
        [K21] = Sheets("Biyosidaller").Range("D" & BUL.Row)
        [K22] = Sheets("Biyosidaller").Range("E" & BUL.Row)
        [M23] = Sheets("Biyosidaller").Range("L" & BUL.Row)
        [O23] = Sheets("Biyosidaller").Range("M" & BUL.Row)
        [Q23] = Sheets("Biyosidaller").Range("N" & BUL.Row)
        [S23] = Sheets("Biyosidaller").Range("T" & BUL.Row)
        [U23] = Sheets("Biyosidaller").Range("S" & BUL.Row)
   End If
End If
End Sub
 
Tek kullanımda kod çalışıyor. sorun Worksheet_Change den olduğundan farklı başlık açıyorum. Teşekkür ederim Muhammet Bey.
 
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [K17]) Is Nothing Then Goto 10
If [K17] <> "" Then
Set BUL = Sheets("Biyosidaller").Range("H:H").Find([K17].Value, , , xlWhole, , xlNext)
If Not BUL Is Nothing Then
[K18] = Sheets("Biyosidaller").Range("A" & BUL.Row)
[K19] = Sheets("Biyosidaller").Range("B" & BUL.Row)
[K20] = Sheets("Biyosidaller").Range("F" & BUL.Row)
[K21] = Sheets("Biyosidaller").Range("D" & BUL.Row)
[K22] = Sheets("Biyosidaller").Range("E" & BUL.Row)
[M23] = Sheets("Biyosidaller").Range("L" & BUL.Row)
[O23] = Sheets("Biyosidaller").Range("M" & BUL.Row)
[Q23] = Sheets("Biyosidaller").Range("N" & BUL.Row)
[S23] = Sheets("Biyosidaller").Range("T" & BUL.Row)
[U23] = Sheets("Biyosidaller").Range("S" & BUL.Row)
End If
End If

10

If Intersect(Target, Range("K23")) Is Nothing Then Exit Sub
Range("S23") = Range("K23") * Range("O23")

End Sub
O zaman bu şekil deneyiniz.
 
Dosyayı inceleyiniz.
 
Son düzenleme:
Hata verdi. [k17] de kaldı. "Expected Function or variable"
 
Muhammet Bey teşekkür ederim. Allah razı olsun. Sorun kalmadı
 
Rica ederim. İyi çalışmalar.
 
Geri
Üst