+ Reply to Thread
Results 1 to 21 of 21

Transfer data from Excel to Outlook Calendar

  1. #1
    Registered User
    Join Date
    01-07-2011
    Location
    Trondheim, Norway
    MS-Off Ver
    MS Excel 2013, Norwegian version
    Posts
    16

    Question Transfer data from Excel to Outlook Calendar

    Hi,

    I have some data in my excel sheet, see picture.
    Now I want to transfer it to Outlook Calendar.

    http://img252.imageshack.us/img252/6...enshot032a.jpg

    How can I do that?


    I hope someone can help me

  2. #2
    Registered User
    Join Date
    01-07-2011
    Location
    Trondheim, Norway
    MS-Off Ver
    MS Excel 2013, Norwegian version
    Posts
    16

    Re: Transfer data from Excel to Outlook Calendar

    I also have a CSV file, if that is easier.

    Just let me know if you want more information!

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Transfer data from Excel to Outlook Calendar

    Hi Hatye

    See this thread. It sounds like what you're doing http://www.excelforum.com/excel-prog...-calender.html

    John
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Registered User
    Join Date
    01-07-2011
    Location
    Trondheim, Norway
    MS-Off Ver
    MS Excel 2013, Norwegian version
    Posts
    16

    Re: Transfer data from Excel to Outlook Calendar

    Thanks John!

    Attached you can find my excel workbook. It is the 2nd sheet that I use when I transfer to Outlook, and the sub I have edited is "Transfer_Outlook" (the one at the top of the module).

    It is not working correctly, do you know what's wrong? Nothing is correctly transferred, and I am not a master in VBA.

    I look forward for help

    -Idar
    Attached Files Attached Files

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Transfer data from Excel to Outlook Calendar

    Hi Hatye

    Couple things. This line of code evaluates to 100
    Please Login or Register  to view this content.
    when you have only 27 rows in column A of Ark2 so you need to delete all the extraneous data below your last row.

    Secondly
    Please Login or Register  to view this content.
    isn't defined anywhere in the code you posted so, the code isn't finding any records. What is strName and where does the value come from?

    Can't test the code until this is defined.

    Alternately, simply explain what it is you wish to do. Perhaps I can help.

    John

  6. #6
    Registered User
    Join Date
    01-07-2011
    Location
    Trondheim, Norway
    MS-Off Ver
    MS Excel 2013, Norwegian version
    Posts
    16

    Re: Transfer data from Excel to Outlook Calendar

    This line of code evaluates to 100
    It is because I need to use the sheet for several school subjects, such as math, finance, economy and so on. Therefore I don't know how many rows that are filled. In sheet 1 I paste my school schedule from our web solution (one by one), and I sort it in the second sheet and use IF-formulas. Since different subjects may have different numbers of lessons, I did it that way. Is there a way to fix it?

    About the secondly, I actually don't know why it is there. I pasted it from the link you sent me. I don't know very much about programming, I usually use the recorder.

    What I want to do is transferring from Excel to Outlook Calendar with:
    Subject: Column A
    Start date: B
    Start time: C
    End date: D
    End time: E
    Place: H
    Category: I
    Body: 1.line: F. 2.line: G
    Reminder: None

    PS! I have deleted the column "All day event".

    Do you understand what I want to do?


    Thank you so much for your help; I really appreciate it!!

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Transfer data from Excel to Outlook Calendar

    Hi Hatye
    Yes, I
    understand what I want to do
    I'll work on this for you.

    John

  8. #8
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Transfer data from Excel to Outlook Calendar

    Hi Hatye

    You'll notice that I made very few changes to your original code; your offsets were off.
    Please Login or Register  to view this content.
    Let me know of issues.

    John

  9. #9
    Registered User
    Join Date
    01-07-2011
    Location
    Trondheim, Norway
    MS-Off Ver
    MS Excel 2013, Norwegian version
    Posts
    16

    Re: Transfer data from Excel to Outlook Calendar

    Let me know of issues.
    I have only one question. It don't categorizes. Do you know what's wrong?

  10. #10
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Transfer data from Excel to Outlook Calendar

    Hi Hatye

    I assume you have "Skole" set up as a Category in Outlook. Assuming you do, you need to change this line of code from
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    Let me know of issues.

    John

  11. #11
    Registered User
    Join Date
    01-07-2011
    Location
    Trondheim, Norway
    MS-Off Ver
    MS Excel 2013, Norwegian version
    Posts
    16

    Re: Transfer data from Excel to Outlook Calendar

    Let me know of issues.
    Hi again, and thank you for responding

    In Outlook I have a category called "Skole" (Norwegian for school).
    I have tried both "Category", "Categorise" and "Categorize" without any luck.

    Do you know what's wrong; and is it working for you?

  12. #12
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Transfer data from Excel to Outlook Calendar

    Hi Hatye

    Have you tried Categories ?

    Please Login or Register  to view this content.
    Yes, the above code works for me.

    John
    Last edited by jaslake; 01-09-2011 at 04:00 PM.

  13. #13
    Registered User
    Join Date
    01-07-2011
    Location
    Trondheim, Norway
    MS-Off Ver
    MS Excel 2013, Norwegian version
    Posts
    16

    Re: Transfer data from Excel to Outlook Calendar

    Oh, I must have miss-spelt it. Now it works great!

    Thank you so much for help and patience I couldn't have done this without you!

  14. #14
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Transfer data from Excel to Outlook Calendar

    Please Login or Register  to view this content.
    Last edited by snb; 01-09-2011 at 05:33 PM.



  15. #15
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Transfer data from Excel to Outlook Calendar

    Glad it works for you. If your issue is resolved, please mark your thread solved.

    John

  16. #16
    Registered User
    Join Date
    01-07-2011
    Location
    Trondheim, Norway
    MS-Off Ver
    MS Excel 2013, Norwegian version
    Posts
    16

    Re: Transfer data from Excel to Outlook Calendar

    That is to be done.
    My last question: is it possible to owerwrite existing appointment? It is not important, but if it can be done with one line or so, it would have been perfect. If it is some work with it, don't use any more time on my problem. I have achieved what I wanted to do; thank you so much!

  17. #17
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Transfer data from Excel to Outlook Calendar

    Hi Hatye

    Don't know...have never done that. Do you want to overwrite a specific "Skole" appointment or would it be acceptable to delete all "Skole" appointments and then recreate them with the new data? (Don't know really if this can be done...just an alternative)

    John

  18. #18
    Registered User
    Join Date
    01-07-2011
    Location
    Trondheim, Norway
    MS-Off Ver
    MS Excel 2013, Norwegian version
    Posts
    16

    Re: Transfer data from Excel to Outlook Calendar

    I thought that if I transfered appointment that allready existed with same subject and time, the old one should have been overwrited.
    Don't think about it, I am more than satisfied

    Thank you again

  19. #19
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Transfer data from Excel to Outlook Calendar

    Hi Hatye

    As you see, it doesn't work this way
    if I transfered appointment that allready existed with same subject and time, the old one should have been overwrited
    However, let's not give up just yet...let me (or someone else on the Forum) look at it.

    I'll get back to you tomorrow and let you know what I can or cannot do.

    John

  20. #20
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Transfer data from Excel to Outlook Calendar

    Hi Hayte

    This code takes the approach of deleting all "Skole" calendar entries then reinstating the new entries. Not the best approach admittedly but I'll follow up tomorrow.
    Please Login or Register  to view this content.
    John

  21. #21
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Transfer data from Excel to Outlook Calendar

    Keep it simple, you need only 2 variables:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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