Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , , , ,

Sponsored Links



Macro to convert file into PDF and then send via email

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 09-12-2009
Member
 
Join Date: Nov 2009
Posts: 33
Macro to convert file into PDF and then send via email

For the job I created a little macro. This macro starts each time you open the workbook and check the dates and sends an email based on the result. So far no worries. But I do not want to send Excel file as it is. The best thing would be to find the function that goes with the button sending a mail in the Excel toolbar, which is to send an image file. Solution is less appropriate to record such as PDF and then send it and then delete the pdf. FYI I work under Windows 2000 and Office 2000. Is there someone who can help me! How can you create a macro to convert a file into a PDF and then send it via email?
Reply With Quote
  #2  
Old 09-12-2009
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
Re: Macro to convert file into PDF and then send via email

In 2007, I recorded a macro that gives this:

ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\Users\myname\AppData\Local\Temp\File1.pdf", Quality:= _
xlQualityStandard, IncludeDocProperties:=False, IgnorePrintAreas:=False, _
OpenAfterPublish:=False
Application.Dialogs(xlDialogSendMail).Show

Does this help you in someway?
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #3  
Old 09-12-2009
Zecho's Avatar
Member
 
Join Date: May 2008
Posts: 2,267
Re: Macro to convert file into PDF and then send via email

Can you just specify the need to modify "myname & File1.pdf" characters as parameters, if you will forgive the intrusion?

but: \AppData\Local\Temp\ I have not understood? Why it should be located at this location?
Reply With Quote
  #4  
Old 09-12-2009
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
Re: Macro to convert file into PDF and then send via email

I did not pursue the matter, I just saved the macro in Excel 2007 and I posted in case. If I have time (not too much the case now), I drown in xldialogsendmail to refine. Unless someone knows the answer.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #5  
Old 09-12-2009
Member
 
Join Date: Nov 2009
Posts: 33
Re: Macro to convert file into PDF and then send via email

Good evening and thank you. The problem for me is that the file will be opened at the same time as windows and everything should be automatic. For the person who uses the result of the macro must have nothing to do but to receive the mail which warns that there is a specific task to perform.
Reply With Quote
  #6  
Old 09-12-2009
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,299
Re: Macro to convert file into PDF and then send via email

Excel 2007 SP2 includes an addin to export to PDF which is not the case in previous versions. So you'll have to go through Acrobat Distiller (paid) or PDFCreator (free) or others (CutePDF, etc.) or services as pdfonline.com.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Macro to convert file into PDF and then send via email"
Thread Thread Starter Forum Replies Last Post
Need Macro command to print and email a pdf file in Microsoft Excel Tritanic MS Office Support 3 2 Weeks Ago 12:03 PM
I need a Macro in Excel by which I can send Email with Attachments AsceTic! Windows Software 2 4 Weeks Ago 06:06 PM
Use of Batch File to Send Email samualres Technology & Internet 5 26-12-2009 02:30 PM
can't send page by email or send link by email from IE8. windows mail default client Joe Schmoe Windows Vista Mail 8 04-09-2009 11:58 PM
How to send a large video file via email Yudhajit Technology & Internet 3 23-05-2009 08:25 PM


All times are GMT +5.5. The time now is 12:02 PM.