+ Reply to Thread
Results 1 to 3 of 3

vba to convert sheet to PDF file and attach it to outlook

  1. #1
    Forum Contributor
    Join Date
    06-15-2012
    Location
    beirut
    MS-Off Ver
    Excel 2007
    Posts
    212

    vba to convert sheet to PDF file and attach it to outlook

    dear ,
    i have an Excel sheet 2007 , i need a VBA to convert it to PDF file and Attach it on Oultook , and automatically insert the Mail Recipients ( To... and CC... ) ,( the outlook connecting to the server of company ) .

    any Idea ?

  2. #2
    Forum Contributor
    Join Date
    06-15-2012
    Location
    beirut
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: vba to convert sheet to PDF file and attach it to outlook

    the subject must be the value of cell ("A7")

  3. #3
    Forum Contributor
    Join Date
    06-15-2012
    Location
    beirut
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: vba to convert sheet to PDF file and attach it to outlook

    dear,
    i found the attached file in this forum , but when i use it , it gave me run-time error:5 and yellow label on the line : #ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
    MyFilePath & MyFileName, Quality:=xlQualityStandard, _
    IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _
    False#
    why doesn't work with me ? i use windows 7 and excel 2007 ?

    need help
    Attached Files Attached Files

+ 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. Attach file and send in outlook
    By mohansingh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2015, 12:18 PM
  2. Attach last saved file outlook/add this to quick step in Outlook
    By Nravota in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 06-25-2015, 06:25 AM
  3. [SOLVED] VBA to Convert Excel sheet to PDF and attach in Outlook
    By lorber123 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-09-2014, 09:53 PM
  4. Convert Excel sheet to PDF and attach in Outlook and LOOP using VBA
    By amatthey72 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-07-2014, 03:42 PM
  5. [SOLVED] Macro to attach the file to Outlook from excel
    By Kiran Kurapati in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-07-2014, 12:24 PM
  6. Macro to attach the file to Outlook from excel
    By Kiran Kurapati in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2014, 08:52 AM
  7. [SOLVED] attach file from folder on c:\ to outlook mail and send
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-24-2013, 11:33 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