+ Reply to Thread
Results 1 to 10 of 10

Sending PDF with Outlook email

  1. #1
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Sending PDF with Outlook email

    Have to working code that sends a workbook as PDF with outlook mail.I have a address book that it gets the name and email address from,problem is if
    the person is not in address book I have problems. Is there a way to have a input box pop up to insert a email address if its not in main address book? Really
    need to expert advice on this,not even sure if it can be done.
    Thanks Z

    Please Login or Register  to view this content.
    Last edited by zplugger; 02-22-2015 at 04:37 PM.

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Sending PDF with Outlook email

    Hi zplugger,

    without going through the whole code in detail, I think what you are asking for is to add these lines (in red):
    Please Login or Register  to view this content.
    Cheers,
    berlan

  3. #3
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Sending PDF with Outlook email

    OMG Berlan you are a Genius, works like a champ.Will run some more test tomorrow for any other bugs.

    Thanks Z

  4. #4
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Sending PDF with Outlook email

    Glad it worked, you're welcome!

  5. #5
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Sending PDF with Outlook email

    Morning All
    Ran some test today and found a error. Everything works good except when you cancel the input box you get error.If I try and send a email without address in addressbook the
    inputbox pops up and wants a email address.This is good if I know the address,but if I'm not sure of address I want to cancel and this is what I get.I guess want I need is if
    I cancel just exit the sub?

    Outlook Error.PNG
    Thanks Z

  6. #6
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Sending PDF with Outlook email

    You can use this line of code:-
    HTML Code: 
    after vEmailAddress = application.inputbox
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  7. #7
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Sending PDF with Outlook email

    Another example:
    Please Login or Register  to view this content.
    The line,
    Please Login or Register  to view this content.
    is the same as
    Please Login or Register  to view this content.
    Cheers,
    berlan

  8. #8
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Sending PDF with Outlook email

    Real close but after I cancel it go's to my address book sheet.I want it to stay on the sheet I was on.The sheet I sent
    the email from was proposal.

  9. #9
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Sending PDF with Outlook email

    Got, thanks guys for all the help on this.
    Z

  10. #10
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Sending PDF with Outlook email

    You're welcome! Thanks for the kind feedback and positive rep added!

+ 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. sending outlook email using vba
    By hcyeap in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-20-2014, 05:11 AM
  2. Sending Email with Outlook
    By cyberwerid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-27-2013, 05:34 PM
  3. Sending Email via Outlook
    By jamsta1972 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-26-2010, 12:46 PM
  4. Sending an email with Outlook Express not Outlook
    By Steven811 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-05-2010, 04:23 AM
  5. Sending Outlook email pop up box
    By jamphan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2007, 03:56 PM

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