DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Husgvarna Çok teşekkür ederim alakanız için çok makbule geçti ama ufak bir sorun var her seferinde programı yeniden başlatıyor gibi yapıyor bunu yapmadan yapabilirmiyiz
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, [a1:a65000]) Is Nothing Then Exit Sub
If ActiveCell.Value = "" Then
MsgBox "Telefon numarası içeren bir hücre seçin."
Exit Sub
End If
Dim ds, a
On Error Resume Next
AppActivate ("X-Lite")
If Err.Number = 0 Then
GoTo b
Else
c:
Set ds = CreateObject("Scripting.FileSystemObject")
a = ds.FileExists("C:\Program Files\CounterPath\x-lite\x-lite.exe")
If a = True Then
Shell ("C:\Program Files\CounterPath\x-lite\x-lite.exe")
b:
Application.SendKeys "{F2}", True
Application.SendKeys "0090" & ActiveCell.Value, True
Application.SendKeys "%d"
Application.SendKeys "{TAB}~", True
Range("a" & ActiveCell.Offset.Row & ":" & "d" & ActiveCell.Offset.Row).Interior.ColorIndex = 3
Else
MsgBox "Program bulunamadı"
Exit Sub
End If
End If
On Error Resume Next
AppActivate ("X-Lite")
If Err.Number <> 0 Then GoTo c
End Sub
birde telefon numaralarını araken 0090 lı olması gerekiyor ama bir türlü formatlar değişmedi 2586555 şi nasıl 00902586555 yapabilirim.
Application.SendKeys [COLOR="#ff0000"]"0090" & ActiveCell.Value[/COLOR], True
Application.SendKeys "%d"
[COLOR="Red"]
Range("a1:e" & Cells(65000, 1).End(xlUp).Row).Interior.ColorIndex = xlNone
Range("a" & ActiveCell.Offset.Row & ":" & "e" & ActiveCell.Offset.Row).Interior.ColorIndex = 3[/COLOR]
Else
MsgBox "Program bulunamadı"
AppActivate ("X-Lite")
AppActivate ("AxonAgent")