+ Reply to Thread
Results 1 to 4 of 4

VBA word to Pdf to Outlook with Loop

  1. #1
    Registered User
    Join Date
    09-25-2020
    Location
    London
    MS-Off Ver
    7
    Posts
    2

    VBA word to Pdf to Outlook with Loop

    Hi All, apologies if you've seen this query many times before. I cannot seem to find a clear answer on why the pdf attachment cannot open after the following macro opens a word file, converts it to a pdf and sends it out via outlook within a loop. The code is as follows. Your help would be much appreciated.

    Please Login or Register  to view this content.
    Thank You
    Last edited by davesexcel; 09-25-2020 at 12:10 PM.

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: VBA word to Pdf to Outlook with Loop

    Possibly adding a open command on the export...?
    Please Login or Register  to view this content.
    If not, try recording an Export to PDF on the File menu instead of using SaveAs to show you the correct syntax..

  3. #3
    Registered User
    Join Date
    09-25-2020
    Location
    London
    MS-Off Ver
    7
    Posts
    2

    Re: VBA word to Pdf to Outlook with Loop

    Hi dangelor, thanks for the response. Unfortunately adding the 'OpenAfter...' line didn't work here. With the other action you mentioned, did you mean try to record a macro with me opening the word and saving it as a pdf? I've tried that and for some reason it doesn't the code of that step. I'll keep playing around. many thanks for your time.

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: VBA word to Pdf to Outlook with Loop

    Possibly...
    Please Login or Register  to view this content.

+ 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. VBA in Outlook to loop thru all emails in a folder
    By Larry.LeBlanc@O in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-04-2019, 04:00 PM
  2. [SOLVED] Problems with For Next Loop in Outlook
    By chaseclark24 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-24-2015, 06:01 PM
  3. Pasting a Table from Outlook to Word
    By andrewc in forum Word Formatting & General
    Replies: 2
    Last Post: 10-31-2011, 08:11 AM
  4. Contact List to Word to Outlook
    By aus10fek in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-12-2011, 05:09 PM
  5. Word and Outlook forums
    By nygwnj in forum Excel General
    Replies: 0
    Last Post: 06-16-2010, 11:42 AM
  6. [SOLVED] Outlook 2003 vs. Word 2002
    By LorrieWhite in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-07-2005, 12:06 AM

Tags for this Thread

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