+ Reply to Thread
Results 1 to 17 of 17

Outlook Attachment - PDF file not attaching.

  1. #1
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Outlook Attachment - PDF file not attaching.

    Hi All

    Hope someone can help with my query.

    I have an excel workbook. I am using 2 macros, one to send a worksheet in data format and 1 to send the same worksheet in PDF format via Outlook as an attachment.

    When I run the macros through my own computer they work fine, but when run through a different computer the data file macro runs fine, but the email for the PDF file sends, but without the attachment.

    I was wondering if someone could point me in the right direction to solving this problem.....would it be connected to anti virus?

    Any help would be much appreciated.


    Kindest regards

    Diane

  2. #2
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Outlook Attachment - PDF file not attaching.

    Hi,

    You can check the following things.....
    Your workstation's excel version and from other workstation's excel version..
    If you have referred any of library then it will be changed as per versions.....
    It can also be affected by anti virus settings.

    I would suggest you if you have macro which are based on early bindings then please try to use late binding ....
    Lokesh Kumar
    Stay Hungry.. Stay Foolish..
    _________________________________________________________
    Please Click STAR to Add Reputation if my/someone's answer helped!

  3. #3
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Outlook Attachment - PDF file not attaching.

    Many thanks Lokesh Kumar for your quick replay.

    I can check the excel versions, but to be honest I am totally out of my depth when it comes to library and bindings..... I didn't write the macros myself.

    Would be very grateful if you could explain a little.

    Thanks

  4. #4
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Outlook Attachment - PDF file not attaching.

    Just enquired about versions ........

    I am using excel 2010 and the other computer is using 2007......could that be the issue?

    Thanks

  5. #5
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Outlook Attachment - PDF file not attaching.

    Hi,

    You can check following link and ask more.....http://www.*****-clicks.com/excel/olBinding.htm

  6. #6
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Outlook Attachment - PDF file not attaching.

    Quote Originally Posted by Maroota View Post
    Just enquired about versions ........

    I am using excel 2010 and the other computer is using 2007......could that be the issue?

    Thanks
    will be solved if you post both the codes........

  7. #7
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Outlook Attachment - PDF file not attaching.

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Outlook Attachment - PDF file not attaching.

    Removed code due to duplication....sorry
    Last edited by Maroota; 05-01-2015 at 05:20 AM. Reason: Duplicated

  9. #9
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Outlook Attachment - PDF file not attaching.

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Outlook Attachment - PDF file not attaching.

    Hi,

    I have an excel workbook. I am using 2 macros, one to send a worksheet in data format and 1 to send the same worksheet in PDF format via Outlook as an attachment.
    just confirm you have 2 codes or this is the only code you are using since you have posted it twice.....

  11. #11
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Outlook Attachment - PDF file not attaching.

    Hi Lokesh

    My apologies I posted the same code twice by mistake (now removed)

    I have left the 2 codes which I using.

    Sorry

  12. #12
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Outlook Attachment - PDF file not attaching.

    Hi,
    I have checked this code it is working correctly on my system and it is written in "Late binding"......
    now you just add this line.....
    to your existing code

    .Display

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Outlook Attachment - PDF file not attaching.

    I request you to also check the outlook version you both are using......since if it is not available then it will also give you error.....

  14. #14
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Outlook Attachment - PDF file not attaching.

    Many thanks LokeshKumar for your help.

    I will certainly action your recommendations. It will take a couple of days to do this, but I will get back to you with the outcome as soon as I can.

    Your help is much appreciated.

    Kindest regards


    Diane

  15. #15
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Outlook Attachment - PDF file not attaching.

    UPDATE

    Its seems the problem was due to the different versions of Outlook/Excel.

    I requested that the file and macros be run on a different machine, but only one using Office 2010 and not 2007 (within that particular depot).

    The emails and attachments came through without a problem.

    Thanks for the advise.

    Diane

  16. #16
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Outlook Attachment - PDF file not attaching.

    Ok great......In programming we keep this things in mind and do the coding appropriately, however finding an error is always a tough in these scenarios....

  17. #17
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Outlook Attachment - PDF file not attaching.

    Ok that's great.....
    We do this thing in mind while developing a code but finding such an issue later is quite tough thing.......

+ 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. Replies: 0
    Last Post: 01-20-2015, 10:07 PM
  2. Saving File Attachment from Outlook to Network Drive
    By TRMoonPunk in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 10-30-2014, 02:36 PM
  3. Replies: 0
    Last Post: 01-10-2013, 11:36 AM
  4. [SOLVED] Drag Attachment file from Outlook to OLE Object
    By Ronin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-15-2005, 12:05 PM
  5. [SOLVED] Trouble attaching an Excel file in Outlook 2003 - Help
    By Lionel in forum Excel General
    Replies: 1
    Last Post: 04-09-2005, 05:06 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