Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

315
Visualizações
Excel Run-time error '-2147024894 (8007002)

I am attempting to run the code referenced below, and am receiving a run-time error. The code executes the task and attaches the file, but still throws the error. "Cannot find this file. Verify the path and file name are correct." I've verified all components of the path and file name and they are correct. Any advice is greatly appreciated. Thank you!

Sub CreateCourseCertificates()

Dim EApp As Object
Set EApp = CreateObject("Outlook.Application")

Dim EItem As Object

Dim path As String
path = "\\path name here\"

Dim RList As Range
Set RList = Range("A2", Range("a2").End(xlDown))

Dim R As Range

For Each R In RList

    Set EItem = EApp.CreateItem(0)
    
    With EItem
        .To = R.Offset(0, 2)
        .Subject = "Reminder - Performance Evaluation Action Due: " & R.Offset(0, 0)
        .Attachments.Add (path & R.Offset(0, 18) & ".docx")
        .Body = "Hello " & R.Offset(0, 1) & vbNewLine & vbNewLine _
        & "Attached is the Annual Performance Evaluation Action Chart for: " & R.Offset(0, 0) & "." _
        & vbNewLine & vbNewLine & "Please reply with any questions." & vbNewLine & vbNewLine & _
        "Thank you."
        .Display
        
    End With

Next R

Set EApp = Nothing
Set EItem = Nothing

End Sub
about 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda