Saber que archivos no se enviaron desde excel Corres masivos
Para Dante Amor, buen día tengo una macro que me envía correos automáticamente a diferentes remitentes y con diferentes archivos adjuntos, en este momento Dante me ayudo a generar un Msgbox que me dijera que archivos no se enviaron, pero el msgbox me queda muy corto para cuando son más de 10 archivos que no se enviaron, entonces quisiera saber que forma existe de pasar eso a un form o algo así para que muestre todo el texto con su respectivo scroll
Este es el Código
Dim AppSaliente, CorreoSaliente As Object
Dim HojaCalculo As Worksheet
Dim celda, CeldArchivo, rango As Range
With Application
.EnableEvents = False
.ScreenUpdating = False
End With
Set HojaCalculo = Sheets("Correo")
Set AppSaliente = CreateObject("Outlook.Application")
For Each celda In HojaCalculo.Columns("B").Cells.SpecialCells(xlCellTypeVisible)
'Poner los nombres en las columnas C:Z de cada fila
Set rango = HojaCalculo.Cells(celda.Row, 1).Range("C1:bZ1")
If celda.Value Like "?*@?*.?*" And _
Application.WorksheetFunction.CountA(rango) > 0 Then
Set CorreoSaliente = AppSaliente.CreateItem(0)
With CorreoSaliente
.to = celda.Value
.Subject = Worksheets("Envio De mensajes").Range("A2").Value
.Body = Worksheets("Envio De mensajes").Range("A6").Value
'.Attachments.Add ActiveWorkbook.FullName
For Each CeldArchivo In rango.SpecialCells(xlCellTypeVisible)
If Trim(CeldArchivo) <> "" Then
If Dir(CeldArchivo.Value) <> "" Then
.Attachments.Add CeldArchivo.Value
Else
CeldArchivo.Interior.ColorIndex = 3
If CeldArchivo.Value = "" Then
Else
cad = cad & CeldArchivo.Value & " "
End If
End If
Else
End If
Next CeldArchivo
'Display
.Send 'para enviar sin comprobar
End With
Set CorreoSaliente = Nothing
End If
Next celda
Set AppSaliente = Nothing
With Application
.EnableEvents = True
.ScreenUpdating = True
End With
MsgBox ("Pdf no encontrados" & cad)