LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Sending Excel Worksheet as PDF file with Excel 2007

While having an Excel file opened, I am testing that code for this
ActiveSheet.ExportAsFixedFormat type:=xlTypePDF, _
fileName:=CStr(SaveAs_path & SaveAsPdf_offerName), _
Quality:=xlQualityStandard, _
IncludeDocProperties:=False, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=False
Application.Dialogs(xlDialogSendMail).Show

but the only thing I get attached to the email opened is the Excel file
itself, not the pdf file

I got this code from the recorder while doing a send as PDF file with Excel
2007... The function is working while used frome Excel itself, not while
replaying the code generated... The only difference I can figure out is that
while done from excel, the pdf file is saved under a temp directory under
your profile...

Any idea why it is not working ?
Have not found clear explanation about the code
Application.dialogs(xlDialogSendMail).Show

Thanks for your help
Alain
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
FYI Excel 2007: Saving a xlsm file with a hidden worksheet activated makes worksheet visible David G.[_3_] Excel Programming 0 August 3rd 09 07:16 PM
Import an MS Money 2007 file into MS Excel 2007 worksheet DonF Excel Discussion (Misc queries) 0 August 29th 08 11:14 PM
Save as file format excel worksheet 4.0 in Microsoft excel 2007 Saria Excel Discussion (Misc queries) 1 July 14th 08 11:39 AM
Sending Excel Worksheet in 2007 to Lotus Notes Valerie Setting up and Configuration of Excel 1 May 20th 08 02:24 PM
With the new file formats in Excel 2007 what are the worksheet dim Ranjana Excel Discussion (Misc queries) 1 August 16th 06 03:32 AM


All times are GMT +1. The time now is 01:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"