- Katılım
- 10 Nisan 2014
- Mesajlar
- 113
- Excel Vers. ve Dili
- 2013 ingilizce
Arkadaşlar merhaba,
Makro içerisinde ve fonksiyonu nasıl kullanılır? Örneğin A sütununda 1 olan hücre ve C sütununda elma yazılı olan gibi... Aşağıdaki makro çalışmamın bir kısmı. Kırmızı yazılı kısımda kullanmaya çalıştım beceremedim.
Private Sub UserForm_Initialize()
Me.TextBox6.Locked = True
Set s = Sheets("CH1-1 transfer")
Set o = Sheets("Ödemeler 2016")
Set s3 = Sheets("sheet3")
Set s4 = Sheets("sheet4")
q = ActiveCell.Row
TextBox2.Value = s.Cells(q, "C").Value
TextBox4.Value = s.Cells(q, "F").Value
ComboBox3.Value = s.Cells(q, "H").Value
For Z = 1 To 65536
If s.Cells(Z, "A").Value = "1" And s.Cells(Z, "C").Value = s.Cells(q, "C").Value Then
TextBox3.Value = s.Cells(Z, "E")
TextBox5.Value = s.Cells(Z, "F")
End If
Next Z
Makro içerisinde ve fonksiyonu nasıl kullanılır? Örneğin A sütununda 1 olan hücre ve C sütununda elma yazılı olan gibi... Aşağıdaki makro çalışmamın bir kısmı. Kırmızı yazılı kısımda kullanmaya çalıştım beceremedim.
Private Sub UserForm_Initialize()
Me.TextBox6.Locked = True
Set s = Sheets("CH1-1 transfer")
Set o = Sheets("Ödemeler 2016")
Set s3 = Sheets("sheet3")
Set s4 = Sheets("sheet4")
q = ActiveCell.Row
TextBox2.Value = s.Cells(q, "C").Value
TextBox4.Value = s.Cells(q, "F").Value
ComboBox3.Value = s.Cells(q, "H").Value
For Z = 1 To 65536
If s.Cells(Z, "A").Value = "1" And s.Cells(Z, "C").Value = s.Cells(q, "C").Value Then
TextBox3.Value = s.Cells(Z, "E")
TextBox5.Value = s.Cells(Z, "F")
End If
Next Z
Son düzenleme:
