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
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
I also have a CSV file, if that is easier.
Just let me know if you want more information!
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.
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
Hi Hatye
Couple things. This line of code evaluates to 100when you have only 27 rows in column A of Ark2 so you need to delete all the extraneous data below your last row.Please Login or Register to view this content.
Secondlyisn'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?Please Login or Register to view this content.
Can't test the code until this is defined.
Alternately, simply explain what it is you wish to do. Perhaps I can help.
John
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?This line of code evaluates to 100
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!!
Hi Hatye
Yes, II'll work on this for you.understand what I want to do
John
Hi Hatye
You'll notice that I made very few changes to your original code; your offsets were off.Let me know of issues.Please Login or Register to view this content.
John
I have only one question. It don't categorizes. Do you know what's wrong?Let me know of issues.
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 fromtoPlease Login or Register to view this content.
Let me know of issues.Please Login or Register to view this content.
John
Hi again, and thank you for respondingLet me know of issues.
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?
Hi Hatye
Have you tried Categories ?
Yes, the above code works for me.Please Login or Register to view this content.
John
Last edited by jaslake; 01-09-2011 at 04:00 PM.
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!
Please Login or Register to view this content.
Last edited by snb; 01-09-2011 at 05:33 PM.
Glad it works for you. If your issue is resolved, please mark your thread solved.
John
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!
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
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
Hi Hatye
As you see, it doesn't work this wayHowever, let's not give up just yet...let me (or someone else on the Forum) look at it.if I transfered appointment that allready existed with same subject and time, the old one should have been overwrited
I'll get back to you tomorrow and let you know what I can or cannot do.
John
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.JohnPlease Login or Register to view this content.
Keep it simple, you need only 2 variables:
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks