Jump to content
Fórum Script Brasil
  • 0

Macro para copiar tabela dinâmica e colar no corpo do email



1 answer to this question

Recommended Posts

  • 0

Deixe a aba onde esta sua tabela dinâmica selecionada.

Aperte Alt+F11 -> Inserir -> Modulo -> Cole o código abaixo -> de um clique no meio do código e aperte F5.

Sub enviar_planilha_corpo_email()

Application.ScreenUpdating = False

ActiveWorkbook.EnvelopeVisible = True
    With ActiveSheet.MailEnvelope
        .Item.To = "[email protected]"
        .Item.Subject = "TESTE ENVIO EMAIL"
    End With

MsgBox "Sua mensagem foi enviada com sucesso!!", vbInformation

Application.ScreenUpdating = True

End Sub

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...