| Code level: intermediate Code area: Basic Outlook Printer Friendly Version | ||
| Title: Import Appointments FROM Excel | ||
| Description: This Example illustrates how to import appointment items from EXCEL file. Assuming that XLS file is in following format: Subject, Contact, Categories, Start_Date, End_Date, Start_Time, End_Time, Reminder. Possible Values for Reminder Field is :'No Reminder','0 Minutes','1 Day','2 Days', '1 Week' Yes you can modify the code according to your requirements, | ||
| Date: 25-Feb-2005 20:01 | ||
| Code level: intermediate | ||
| Code area: Basic Outlook | ||
| Posted by: Sheetal Soni | ||
| Body: |
||
| All 85comments |
| Page [ 1 2 3 4 5 6 7 8 9 Next >> ] | ||
|
|
mll
23-Mar-2005 09:05
Interesting... Anybody has code to do the reverse (export appointments into an Excel sheet). If not, I'll try to write one based on this some day, and publish it. |
|
|
|
Sue Mosher
24-Mar-2005 07:31
Mil, see http://www.outlookcode.com/d/customimport.htm |
|
|
|
mll
31-Mar-2005 10:47
Thanks Sue, that's a nice strating point, especially http://www.helenfeddema.com/CodeSamples.htm#Code58 |
|
|
|
JCV
02-Apr-2005 23:21
I created a module in the outlook Visual Basic editor and ran this code. I did set the references that I thought would be required. When I run this code the first Dim statement yields the error "user defined type not defined". What other set up operations do I need to perform for this code to work? I will appreciate any help on this. Thanks. |
|
|
|
Sue Mosher
03-Apr-2005 13:44
JCV, what references did you set. This code requires the Microsoft Excel library, Scripting Runtime, and of course Microsoft Outlook. |
|
|
|
JCV
04-Apr-2005 13:30
Sue M.,Thank you very much! I did not have the correct references set. Once I set the references you suggested, it fixed the problem. This is a really great little module. I just have to change it around a little to do exactly what I need. Thanks again for your help. |
|
|
|
JCV
16-Apr-2005 12:22
I am looking for the Property/Method that I need to use with the "itmAppt." to set the "Label" for the appointment item. From what I can tell, the "Label" can't be set programatically in the same simple way as the other parameters of the appointment item. I appreciate any help. Thanks. |
|
|
|
Sue Mosher
16-Apr-2005 17:06
JCV, see http://www.outlookcode.com/codedetail.aspx?id=139 for sample code. CDO or Redemption is required. |
|
|
|
skinfreak
20-Apr-2005 05:58
Can this be adapted to import form a csv opposed to an xls file? I have NO VBA experience but a book is on order! If the question sounds remidial, it's because I know nothing. thanks! |
|
|
|
Sue Mosher
20-Apr-2005 07:01
skinfreak, yes, it could be adapted. You'd use FileSystemObject methods to read the .csv file line by line. See http://www.outlookcode.com/d/vbscript.htm for FSO references and http://www.outlookcode.com/d/customimport.htm for more import samples that should help you get on the right track. |
|
| Page [ 1 2 3 4 5 6 7 8 9 Next >> ] | ||
| Post your comment name email |
