+ Reply to Thread
Results 1 to 3 of 3

run-time error -2147024894 : Excel Sheet to PDF to Outlook.

  1. #1
    Forum Contributor
    Join Date
    03-12-2014
    Location
    Riyadh
    MS-Off Ver
    Office 365
    Posts
    129

    run-time error -2147024894 : Excel Sheet to PDF to Outlook.

    Hi folks! can you please me fix the code?
    Bug is in the line: .Attachments.Add strTempFile

    Trying to send sheet as pdf via outlook.
    Thanks a lot in advance!

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    06-22-2018
    Location
    Blackpool, England
    MS-Off Ver
    2019
    Posts
    408

    Re: run-time error -2147024894 : Excel Sheet to PDF to Outlook.

    You've used "strTempFile" as file name, but you've used "PdfFile" when exporting... it should look like this:
    Please Login or Register  to view this content.
    Does that fix it?

    Tim
    Never stop learning!
    <--- please consider *-ing !

  3. #3
    Forum Contributor
    Join Date
    03-12-2014
    Location
    Riyadh
    MS-Off Ver
    Office 365
    Posts
    129

    Re: run-time error -2147024894 : Excel Sheet to PDF to Outlook.

    thank you! your post gave me some ideas, and helped me tweak the code. Here is the working code.
    Thanks a lot!

    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. [SOLVED] PDF & Outlook Automation Problems in Excel for Mac - Run-time error 75
    By aglawrence in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 12-14-2018, 05:37 AM
  2. [SOLVED] Run-time error '-2147024894 (80070002)': Cannot find this file. Verify the path and file n
    By Matthew55 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-16-2018, 12:01 PM
  3. [SOLVED] Mail batch outlook run time error
    By Fean in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2016, 11:12 AM
  4. Replies: 3
    Last Post: 10-27-2015, 12:26 AM
  5. Run-Time Error 4065 - Pasting Copied Data from Excel to Outlook Email Body
    By jtn260 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-25-2014, 11:03 AM
  6. [SOLVED] Run time error 424: Object Required in Outlook/Excel VBA
    By sirhacksalot in forum Excel General
    Replies: 9
    Last Post: 12-07-2013, 11:09 AM
  7. [SOLVED] Error on submitting an Excel Sheet using Outlook
    By AccessHelp in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-01-2005, 10:40 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