+ Reply to Thread
Results 1 to 5 of 5

Macro to Email Word Document

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    1,948

    Macro to Email Word Document

    I have the following code below to email a word document

    I get a run time error, User-defined type not defined and code below ishighlighted


    Please Login or Register  to view this content.
    It would be appreciated if someone could assist me



    Please Login or Register  to view this content.

  2. #2
    Forum Guru macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,646

    Re: Macro to Email Word Document

    Have you set a reference to Outlook, via Tools|References?
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    1,948

    Re: Macro to Email Word Document

    Thanks for pointing this out. It now attaches the file

    It would be appreciated if you could advise how I go about setting up the body of the email for eg

    Dear David

    Attached please find a list of invoices that we need copies of


    Kindly email these to me


    I would also liketo know how to create a macro button on the word document


    I am familiar on how to create this on Excel but not in Word


    Your assistance is most appreciated

    Regards


    Howard

  4. #4

  5. #5
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    1,948

    Re: Macro to Email Word Document

    Thanks for the links. I have now managed to set up the body of the email

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to email word document as an attachment with filename taken from text in document
    By laxminarayana in forum Word Programming / VBA / Macros
    Replies: 7
    Last Post: 03-08-2018, 04:46 PM
  2. excel to paste to word then attach word document to an email
    By ahalliwell in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-30-2017, 12:44 PM
  3. [SOLVED] Creating email using Word document as email body formatting lost
    By Chrispelletier in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-17-2016, 09:04 PM
  4. Call email and attach a word document
    By Ghostmonkey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-21-2016, 05:00 AM
  5. email data from excel or create a word document
    By terence17 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-14-2015, 12:32 PM
  6. How to convert Word document to PDF and attach to an email ...
    By lapot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2014, 05:06 PM
  7. [SOLVED] highlight and copy email address from word document
    By lovinguy in forum Word Formatting & General
    Replies: 2
    Last Post: 06-27-2014, 09:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1