Items.Add is the right method. You need no arguments if you're creating an appointment with the standard form. What specifically doesn't work for you with that approach?
You didn't say where your target folder is located in the Public Folders hierarchy. You can either walk the folder hierarchy using the Folders collections or use a function that does that for you. See http://www.outlookcode.com/d/code/getfolder.htm and, especially for public folders, http://www.outlookcode.com/codedetail.aspx?id=1164

Signature
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
> I found this code that should work but i cant get them to work together...
>
[quoted text clipped - 18 lines]
>
> Can someone help me put it together so they work??
bilbo+ - 19 Oct 2007 17:23 GMT
I'#m not that proficient with VB code so ive been taking snippets and trying
to get them to work together, if i simply paste the scond load of code into
the first one then it doesnt work, i was wondering if someone would be able
to put them together so it works. if i put it all together it comes up with
an object error. If someone could put it together how it 'should' work then
im sure it will. Basically im guessing if i put them together it doesnt work
becauase its contradicting itself in the code? is that right? The folder im
after is in public folders > all public folders > cks diary
Am i making sense!?
Thanks
> Items.Add is the right method. You need no arguments if you're creating an appointment with the standard form. What specifically doesn't work for you with that approach?
>
[quoted text clipped - 22 lines]
> >
> > Can someone help me put it together so they work??
Sue Mosher [MVP-Outlook] - 19 Oct 2007 17:57 GMT
You have everything you need already in the code you originally posted. Basically, you need to:
a) Return a MAPIFolder object by walking the folder hierarchy.
b) Once you have that object, use its Items.Add method to add a new item to the folder.
Just put the correct name of the folder in the third Set myFolder = statement that you shared earlier.
Tip for next time: Explain exactly what code you are referring to rather than using vague terms like "second load of code." Remember no one here can look over your shoulder.

Signature
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
> I'#m not that proficient with VB code so ive been taking snippets and trying
> to get them to work together, if i simply paste the scond load of code into
[quoted text clipped - 34 lines]
>> >
>> > Can someone help me put it together so they work??