+ Reply to Thread
Results 1 to 19 of 19

outlook to excel body of information

  1. #1
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    141

    outlook to excel body of information

    hi guys,

    not sure if this is possible,

    I want to know is it possible to export certain emails that have the subject Appointment to a excel spreadsheet.

    I keep track of members appointments through a excel spreadsheet.

    They provide the following information to me in a email,

    Name - Henry

    Date - 20 Dec 2017

    Time - 15:00

    Type - Upper Body

    Location - Hospital


    I have attached a spreadsheet I use to keep track.

    I have over 40 people emailing me so the appointments keep adding on one after the other.

    I use a macro in excel to delete the appointments when they have been competed.
    Attached Files Attached Files

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: outlook to excel body of information

    Yes. When you say export, do you mean export the email as MSG or just read the body of the email and parse it to your sheet?

    What folder do the files come into, inbox? Is it Exchange or Gmail?

    I would recommend moving the emails to a folder once "exported". What is the name of that folder?

    If you know how to run a macro in Outlook, I can show you an Outlook macro that will get an Outlook folder's path if not one of the defaults.

  3. #3
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    141

    Re: outlook to excel body of information

    Hi,

    read the body of the email then copy it to my spreadsheet, Once it has done that I dot need to email anymore so if there is a code to delete the email maybe?

    I am using Exchange.

    The emails just come into Inbox

  4. #4
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: outlook to excel body of information

    I'll check back tomorrow and show you how if no one has done so by then.

  5. #5
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: outlook to excel body of information

    While I could have deleted the email in one loop, I wanted to make sure that the data was imported without error before that. So, I changed the Subject line and deleted it later. Of course it is still in your Deleted Items folder.
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    141

    Re: outlook to excel body of information

    Hi Kenneth

    Is this code run in outlook or excel ?

  7. #7
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: outlook to excel body of information

    Excel, VBE Module.

  8. #8
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    141

    Re: outlook to excel body of information

    thanks Kenneth,

    Is there a way to change the code as I am looking at merging two of my spreadsheets into one if this can be achieved I will be starting my appointments from A98, B98, C98, D98 and E98

  9. #9
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    141

    Re: outlook to excel body of information

    Does anyone know why I would get this error
    Run-time error ‘287’:
    Application-defined or object-defined error

    Then when I click debug

    B = Split (.Body, vbCrLf) this comes up in yellow

  10. #10
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    141

    Re: outlook to excel body of information

    Also in the code is it possible to designate the actually cell I want it to go to?

    and last of all is it possible

    when a appointment has past to be deleted and the new appointments fill up from the top?

  11. #11
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: outlook to excel body of information

    For posts #8 and #10:
    Please Login or Register  to view this content.
    Of course doing that you may overwrite data.

    The last part of #10 is really a separate issue. I don't know what fill up from top means. Normally, I would just select all the rows and delete with xlUp. The code either checks Today vs Date column or Date column plus Time column depending on your preference.

    For just the Date column:
    Please Login or Register  to view this content.
    Last edited by Kenneth Hobson; 12-03-2017 at 01:18 PM.

  12. #12
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    141

    Re: outlook to excel body of information

    hi Kenneth

    sorry for the delay

    Fill up from the top,

    I was referring to when a appointment has past and been deleted I would like the next appointment that is sent to me to be filled in that position

  13. #13
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    141

    Re: outlook to excel body of information

    this is what I have.

    Please Login or Register  to view this content.
    like you said in the previous messages Kenneth when someone else sends me a appointment it deletes other peoples appointments even if they have not been yet.

    Appointments start from row 98 on my spreadsheet

  14. #14
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    141

    Re: outlook to excel body of information

    Hi everyone

    Anyone know why when I run the above code at my work it comes up with this message and does not work

    Run time error 287

    Click debug and it’s coming up with

    B = Split(.Body, vbCrLf)

    In outlook the email turns to Delted - Appoitment but does not delete as well

  15. #15
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    141

    Re: outlook to excel body of information

    Hi Kenneth,

    This was the spreadsheet I was referring to in one of my last messages starting from rom 99.
    Attached Files Attached Files

  16. #16
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    141

    Re: outlook to excel body of information

    Hi would anyone know if this error is the result of my work computer using outlook 2010 running exchange

    The code works fine on my computer at home using outlook 2016 no exchange

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,493

    Re: outlook to excel body of information

    Rule 08: Cross-posting Without Links

    Your post does not comply with Rule 8 of our Forum RULES. Do not cross-post your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    No further help to be offered, please, until the OP has complied with this request.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  18. #18
    Forum Contributor
    Join Date
    08-10-2017
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    141

    Re: outlook to excel body of information

    I have posted this question on excelguru as well

    https://www.excelguru.ca/forums/show...dsheet&p=35844

  19. #19
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: outlook to excel body of information

    And using different usernames to circumvent these rules... ?

+ 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. Get email body from outlook to excel
    By John1997x in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-10-2017, 11:15 AM
  2. Replies: 2
    Last Post: 04-12-2017, 04:27 AM
  3. [SOLVED] Place workbook information in body of outlook email but not send it.
    By aliciaward1001 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-18-2015, 08:55 AM
  4. [SOLVED] Outlook Email with Body from Excel
    By dreicer_Jarr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-07-2013, 03:57 AM
  5. Body of outlook message to Excel
    By dougmorgan in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 05-19-2013, 09:11 AM
  6. Outlook Email Body to Excel
    By Sciortmj in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-14-2012, 02:10 PM
  7. Excel sheet to Outlook body
    By LB79 in forum Excel General
    Replies: 1
    Last Post: 11-20-2007, 03:05 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