+ Reply to Thread
Results 1 to 2 of 2

Excel 2K7 - send workbook as PDF

  1. #1
    Registered User
    Join Date
    12-08-2010
    Location
    london, uk
    MS-Off Ver
    Excel 2007
    Posts
    2

    Excel 2K7 - send workbook as PDF

    Greetings All,

    Sincerest apologies if this has been addressed previously but I am attempting to send my workbook as a PDF via Outlook using a command button.

    My VBA is not very developed.
    To the extent where I have simply recorded the steps manually and attempted to tweak the following code:

    ' START OF CODE
    '
    Sheets(Array("Summary", "Not Shipped", "Shipments by Contract No", _
    "Shipments by ETA", "Rowse Inventory")).Select
    Sheets("Summary").Activate
    ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
    "\\svr-fp01\rowsetmp\Contract Summary.pdf", Quality:= _
    xlQualityStandard, IncludeDocProperties:=False, IgnorePrintAreas:=False, _
    OpenAfterPublish:=False
    Application.Dialogs(xlDialogSendMail).Show
    End Sub

    What is happening though, is that, whereas it creates a .pdf file in the directory (\\svr-fp01\rowsetmp\ , it does not attach the .pdf but rather attaches the workbook, which is not what I want.

    If anyone could shed any light it would be greatly appreciated.

    Many thanks in advance for your help!

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Excel 2K7 - send workbook as PDF

    Hi and welcome to the board

    First add code tags around your code as described in the forum rules

    Then look at this site

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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