• DİKKAT

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

Combobox kesişen değeri Textboxa alma

Katılım
11 Şubat 2010
Mesajlar
202
Excel Vers. ve Dili
13 türkçe
Selamlar,
A3:A8 sütunu (Combobox1) ile B2:F15 satırı (Combobox2) arasında kesişen değeri Textbox1'e çekebilir miyiz? Teşekkürler.
 
Dosyanız ektedir.:cool:
Kod:
Sub kesisme59()
Dim k As Range, sat As Long, sut As Integer
Label54.Caption = ""
If ComboBox1.Value <> "" And ComboBox2.Value <> "" Then
    Set k = Range("O6:O" & Rows.Count).Find(ComboBox2.Value, , xlValues, xlWhole)
    If Not k Is Nothing Then sat = k.Row
    Set k = Range("P5:IV5").Find(ComboBox1.Value, , xlValues, xlWhole)
    If Not k Is Nothing Then sut = k.Column
    If sat > 0 And sut > 0 Then Label54.Caption = Format(Cells(sat, sut).Value, "#,##0.00")
End If
End Sub
 

Ekli dosyalar

Dosyanız ektedir.:cool:
Kod:
Sub kesisme59()
Dim k As Range, sat As Long, sut As Integer
Label54.Caption = ""
If ComboBox1.Value <> "" And ComboBox2.Value <> "" Then
    Set k = Range("O6:O" & Rows.Count).Find(ComboBox2.Value, , xlValues, xlWhole)
    If Not k Is Nothing Then sat = k.Row
    Set k = Range("P5:IV5").Find(ComboBox1.Value, , xlValues, xlWhole)
    If Not k Is Nothing Then sut = k.Column
    If sat > 0 And sut > 0 Then Label54.Caption = Format(Cells(sat, sut).Value, "#,##0.00")
End If
End Sub

Allah razı olsun.
 
Geri
Üst