takto to mna byt:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Range("A1:HB100"), Range(Target.Address)) Is Nothing Then
For x = 1 To Target.Cells.Count
aValue = aValue & Target.Cells(x).Value & ";"
Next
Call Mail_small_Text_Outlook(aValue & " Range: " & Target.Address(0, 0))
End If
End Sub
Sub Mail_small_Text_Outlook(ByVal aValue As String)
Dim OutApp As Object
Dim OutMail As Object
Dim strbody As String
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
On Error Resume Next
With OutMail
.To = "@"
.CC = ""
.BCC = ""
.Subject = "Zmeny v tabulce"
.Body = aValue
.Display
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
End Sub
citovat