DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, [a1]) Is Nothing Then Exit Sub
Call test
End Sub
Sub test()
MsgBox "merhaba"
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, [a1:c1]) Is Nothing Then Exit Sub
If Target.Column = 1 Then Call test_1
If Target.Column = 3 Then Call test_2
End Sub
Sub test_1()
MsgBox "merhaba"
End Sub
Sub test_2()
MsgBox "selam"
End Sub
up
arkadaşlar bu soruma cevap yokmu buna ihtiyacım var...
a1 hücresine test, b1 hücresine test2 makrolarını nasıl atayacağım?
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
If Intersect(Target, [a:d]) Is Nothing Then Exit Sub
With Target
Select Case Target
Case "ali"
ali
Case "veli"
veli
Case "ayşe"
ayşe
End Select
End With
End Sub
Sub ali()
MsgBox "Günaydın!"
End Sub
Sub veli()
MsgBox "Tünaydın!"
End Sub
Sub ayşe()
MsgBox "İyi akşamlar!"
End Sub
Sub makro1()
MsgBox "merhaba"
End Sub
Sub makro2()
MsgBox "selam"
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, [a:c]) Is Nothing Then Exit Sub
If Target.Row = 2 And Target.Column = 1 Then Call makro1
If Target.Row = 6 And Target.Column = 3 Then Call makro2
End Sub