Že pred časom (teme ne najdem več) ste nekomu pomagali z makrom, ki pošlje e-mail. Jaz sem ga malo spremenil in sedaj je takšen:
Koda: Izberi vse
Sub PosljiEPosto()
Dim iMsg As Object
Dim iConf As Object
Dim y As Integer
Dim fil As String
y = ActiveCell.Row
fil = Cells(y, 4).Value & ".doc" ' dobi ime priloge
Set iMsg = CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
With iMsg
Set .Configuration = iConf
.To = Cells(y, 12).Value ' dobi e-naslov
.CC = ""
.BCC = ""
.From = "dusan.f@siol.net"
.Subject = Cells(y, 3).Value
.TextBody = "LP Dušan"
.AddAttachment "c:\Moji dokumenti\" & fil
.Send
End With
Set iMsg = Nothing
Set iConf = Nothing
End Sub
LP Dušan