- Katılım
- 24 Ağustos 2017
- Mesajlar
- 18
- Excel Vers. ve Dili
- Microsoft Office Professional Plus 2013 - Türkçe
Arkadaşlar merhaba
https://drive.google.com/open?id=0B2vbY-Gpad39NnljSG9RS0thWWc
Şu eklediğim linkteki dosyada D9 ve D10 hücrelerini birbirine bağlamak istiyorum. D9 AWG cinsinden, D10 mm2 cinsiden kablo kesiti. Benim istediğim ise kullanıcı hangisini girerse diğerinin ona göre hesaplanması. Aslında bunu ekteki dosyada yaptım ama D9'a veri girdiğimde D10 hesaplanınca D10'da değişmiş oluyor ve D9 D10'a göre tekrar hesaplanıyor ve ikisi de 0 olana kadar işlem sürüyor. Bunu nasıl önlerim?
Kullandığım kodlar;
https://drive.google.com/open?id=0B2vbY-Gpad39NnljSG9RS0thWWc
Şu eklediğim linkteki dosyada D9 ve D10 hücrelerini birbirine bağlamak istiyorum. D9 AWG cinsinden, D10 mm2 cinsiden kablo kesiti. Benim istediğim ise kullanıcı hangisini girerse diğerinin ona göre hesaplanması. Aslında bunu ekteki dosyada yaptım ama D9'a veri girdiğimde D10 hesaplanınca D10'da değişmiş oluyor ve D9 D10'a göre tekrar hesaplanıyor ve ikisi de 0 olana kadar işlem sürüyor. Bunu nasıl önlerim?
Kullandığım kodlar;
Kod:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells1 As Range
Dim KeyCells2 As Range
Dim KeyCells3 As Range
Set KeyCells1 = Range("D9")
Set KeyCells2 = Range("D10")
Set KeyCells3 = Range("D5:D10")
If Not Application.Intersect(KeyCells1, Range(Target.Address)) Is Nothing Then
Range("D10").Formula = "=3.14159*((0.127*(92^((36-D9)/39)))^2)/4"
End If
If Not Application.Intersect(KeyCells2, Range(Target.Address)) Is Nothing Then
Range("D9").Formula = "=36-(39*LOG((KAREKÖK((D10*4)/3.14159)/0.127),92))"
End If
If Not Application.Intersect(KeyCells3, Range(Target.Address)) Is Nothing Then
If Range("D14") >= -1 And Range("D5").Value <> "" And Range("D6").Value <> "" _
And Range("D8").Value <> "" And Range("D9").Value <> "" And Range("D10").Value <> "" Then
Range("C14").Value = "Applicable"
Range("C14").Font.Color = RGB(84, 130, 53)
ElseIf Range("D14") < -1 And Range("D5").Value <> "" And Range("D6").Value <> "" _
And Range("D8").Value <> "" And Range("D9").Value <> "" And Range("D10").Value <> "" Then
Range("C14").Value = "Not Applicable"
Range("C14").Font.Color = RGB(255, 0, 0)
Else
Range("C14").Value = ""
End If
End If
End Sub
Son düzenleme:
