Aşagıdaki kodu bir butona bağlamak için nasıl düzenlemeyiz.
Teşekkürler
Private Sub Worksheet_Change(ByVal Target As Range)
Set sg = Sheets("Genel Bilgiler")
Set sf = Sheets("Fiyat")
If Intersect(Target, [d5:d300]) Is Nothing Then: Exit Sub
sat = Target.Row
x = Application.WorksheetFunction.Match(Target.Value, sg.Range("A1:A1000"), 0)
sf.Cells(sat, 2) = sg.Cells(x, 3)
sf.Cells(sat, 3) = sg.Cells(x, 2)
Set sg = Nothing
Set sf = Nothing
End Sub
Teşekkürler
Private Sub Worksheet_Change(ByVal Target As Range)
Set sg = Sheets("Genel Bilgiler")
Set sf = Sheets("Fiyat")
If Intersect(Target, [d5:d300]) Is Nothing Then: Exit Sub
sat = Target.Row
x = Application.WorksheetFunction.Match(Target.Value, sg.Range("A1:A1000"), 0)
sf.Cells(sat, 2) = sg.Cells(x, 3)
sf.Cells(sat, 3) = sg.Cells(x, 2)
Set sg = Nothing
Set sf = Nothing
End Sub