+ Reply to Thread
Results 1 to 6 of 6

scrapping from mail

  1. #1
    Forum Contributor
    Join Date
    07-10-2019
    Location
    england
    MS-Off Ver
    2013
    Posts
    486

    scrapping from mail

    Hi,
    Like sending mail from excel. Is it possible to retrieve the attachments from the mail and save in the folder. and the names of the attachment and saved folder path should be put in a column .
    Can anyone share sample code for the same? i can modify it or it will help me in getting started. I cannot share the mail pswd..

  2. #2
    Forum Contributor
    Join Date
    07-10-2019
    Location
    england
    MS-Off Ver
    2013
    Posts
    486

    Re: scrapping from mail

    Hi,
    Anybody can help with respect to this?
    I have around 600 mails.. I need to download each one manually and i have note the date of download and storage location in excel sheet.
    Is there a way to scrap using vba by downloading attachments and extracting the name and path along with date to excel.

  3. #3
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: scrapping from mail

    Hi dorabajji,

    See posts #3 and #4 in the following thread and the attached files: https://www.excelforum.com/excel-pro...-c-by-vba.html

    One file has simple examples that you should be able to follow and modify.

    The other file probably does what you want and a lot more, but may be difficult to use and more difficult to follow the code. This can save the body of the emails at .txt, .mht (standalone HTML), .msg, or .pdf files. It also can save attachments for each email.

    Attachment names have 3 parts to make sure each attachment is unique:
    a. Sender, Date/Time Sent, Title
    b. the word 'Attachment'
    c. Actual Attachment name

    Attachments will not be saved using the 'List' Option.

    Suggestions for use (processing is slow, approximately 1-2 seconds per email):
    a. Put the files you download in a folder that contains no other files.
    b. Copy or move a small number of emails in outlook to their own outlook folder
    c. Test the options in the program until you find something you want.

    Good luck.

    The following code saves all attachments for one Outlook Email:
    Please Login or Register  to view this content.
    Lewis

  4. #4
    Forum Contributor
    Join Date
    07-10-2019
    Location
    england
    MS-Off Ver
    2013
    Posts
    486

    Re: scrapping from mail

    Hi Metzger,
    I will check.. thanks..
    And is it possible like from gmail too?
    Like cdo lib fr sending.. is it possible other than outlook?

  5. #5
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: scrapping from mail

    Hi,

    Thanks for the rep points.

    Other people have been successful reading Gmail without using Outlook, but I have not tried it. It seems that they have used external libraries to access GMail. I saw one that cost $160 US.

    It can be done using the Python language. Python is open source (free) and there is free code to access GMail from Python, but Python has a very steep learning curve.
    Reference: https://pythonprogramminglanguage.co...-using-python/

    Lewis
    Last edited by LJMetzger; 12-01-2019 at 08:33 AM.

  6. #6
    Forum Contributor
    Join Date
    07-10-2019
    Location
    england
    MS-Off Ver
    2013
    Posts
    486

    Re: scrapping from mail

    Thanks... Will check..

+ 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. Scrapping Data from a website
    By dorabajji in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2019, 03:05 PM
  2. VBA help in web scrapping
    By dvnr_76 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-15-2016, 03:25 AM
  3. Not scrapping all the pages
    By biznez in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-16-2015, 12:28 PM
  4. Web Scrapping
    By shivu98 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 09-22-2014, 08:03 AM
  5. Web Scrapping from www.eppraisal.com
    By Tejas.T in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2013, 01:05 AM
  6. Web Scrapping Help
    By Spyderz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-04-2012, 12:33 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