DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Explicit
Sub Smsform_Tıklat()
Dim Say As Long, Sayfa As Worksheet
Dim Alan As Range, Dinamik_Alan As String, Hucre As Range
With Application
.ScreenUpdating = False
.EnableEvents = False
End With
If MsgBox("SMS Formu göndermek istediğinizden eminmisiniz?", vbYesNo + vbInformation) = vbNo Then Exit Sub
[COLOR="Red"]ThisworkBook.Save[/COLOR]
Say = WorksheetFunction.CountIf(Worksheets("SMS").Range("A:A"), "<>") + 1
Dinamik_Alan = "B2:" & "M" & Say
Set Alan = Worksheets("SMS").Range(Dinamik_Alan)
Set Sayfa = ActiveSheet
With Alan
.Parent.Select
Set Hucre = ActiveCell
ActiveWorkbook.EnvelopeVisible = True
With .Parent.MailEnvelope
.Introduction = ""
With .Item
.To = "xxxxx@xxxxx.comr"
.CC = ""
.Subject = "SMS Gönderme Talep Formu"
.bcc = ""
.Send
End With
End With
Hucre.Select
End With
Sayfa.Select
HATA:
With Application
.ScreenUpdating = True
.EnableEvents = True
End With
End Sub