
Private Sub FUoriSLA_Click()
' Select the range of cells on the active worksheet.
ActiveSheet.Range("C1:I123").Select
' Show the envelope on the ActiveWorkbook.
ActiveWorkbook.EnvelopeVisible = True
' Set the optional introduction field thats adds
' some header text to the email body. It also sets
' the To and Subject lines. Finally the message
' is sent.
With ActiveSheet.MailEnvelope
.Introduction = "Buongiorno." & vbCrLf & "Potreste cortesemente fornirci informazioni in merito alle seguenti chiamate, vengono effettuate oggi?" & vbCrLf & "Grazie." & vbCrLf & "[Fate Rispondi a tutti]"
.Item.To = " "
.Item.CC = "assistenza.unipolsai@gruppobdf.com"
.Item.Subject = "UNIPOLSAI - Chiamate scadute/in scadenza"
.Item.Send
End With
End Sub
|
Sub Macro59() If ActiveSheet.AutoFilterMode = False Then Exit Sub End If ActiveSheet.AutoFilter.Range.Copy Worksheets.Add.Paste Cells.EntireColumn.AutoFit End Sub |
Sub Macro1()
'
' Macro1 Macro
'
'
Sheets.Add After:=ActiveSheet
Sheets("Dati").Select
Range("C1:I123").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Email").Select
ActiveSheet.Paste
Columns("A:A").EntireColumn.AutoFit
Columns("B:B").EntireColumn.AutoFit
Columns("C:C").EntireColumn.AutoFit
Columns("D:D").EntireColumn.AutoFit
Columns("E:E").ColumnWidth = 8.57
Columns("E:E").EntireColumn.AutoFit
Columns("F:F").EntireColumn.AutoFit
Columns("G:G").EntireColumn.AutoFit
With Worksheets("Email").Cells.Font
.Name = "Arial"
.Size = 10
End With
End Sub |
' Set the optional introduction field thats adds
' some header text to the email body. It also sets
' the To and Subject lines. Finally the message
' is sent.
With ActiveSheet.MailEnvelope
.Introduction = "Buongiorno." & vbCrLf & "Potreste cortesemente fornirci informazioni in merito alle seguenti chiamate, vengono effettuate oggi?" & vbCrLf & "Grazie." & vbCrLf & "[Fate Rispondi a tutti]"
.Item.To = " "
.Item.CC = "assistenza.XXXXX@XXXXX.com"
.Item.Subject = XXXXX - Chiamate scadute/in scadenza"
.Item.Send |
Sub Macro1()
'
' Macro1 Macro
'
'
Sheets.Add After:=ActiveSheet
Sheets("Dati").Select
Range("C1:I123").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Email").Select
ActiveSheet.Paste
Columns("A:A").EntireColumn.AutoFit
Columns("B:B").EntireColumn.AutoFit
Columns("C:C").EntireColumn.AutoFit
Columns("D:D").EntireColumn.AutoFit
Columns("E:E").EntireColumn.AutoFit
Columns("E:E").EntireColumn.AutoFit
Columns("F:F").EntireColumn.AutoFit
Columns("G:G").EntireColumn.AutoFit
With Worksheets("Email").Cells.Font
.Name = "Arial"
.Size = 10
End With
End Sub
|
'N1
Sub Macro1()
'
' Macro1 Macro
'
'
Sheets("Dati").Select
Range("C1:I123").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Email").Select
ActiveSheet.Paste
Columns("A:A").EntireColumn.AutoFit
Columns("B:B").EntireColumn.AutoFit
Columns("C:C").EntireColumn.AutoFit
Columns("D:D").EntireColumn.AutoFit
Columns("E:E").EntireColumn.AutoFit
Columns("F:F").EntireColumn.AutoFit
Columns("G:G").EntireColumn.AutoFit
With Worksheets("Email").Cells.Font
.Name = "Arial"
.Size = 10
End With
End Sub
----------------------------------
'N2
Private Sub FUoriSLA_Click()
' Select the range of cells on the active worksheet.
ActiveSheet.Range("C1:I123").Select
' Show the envelope on the ActiveWorkbook.
ActiveWorkbook.EnvelopeVisible = True
' Set the optional introduction field thats adds
' some header text to the email body. It also sets
' the To and Subject lines. Finally the message
' is sent.
With ActiveSheet.MailEnvelope
.Introduction = "Buongiorno." & vbCrLf & "Potreste cortesemente fornirci informazioni in merito alle seguenti chiamate, vengono effettuate oggi?" & vbCrLf & "Grazie." & vbCrLf & "[Fate Rispondi a tutti]"
.Item.To = " "
.Item.CC = "assistenza.azienda@suffisso.com"
.Item.Subject = "Azienda - Chiamate scadute/in scadenza"
.Item.Send
End With
End Sub
|
