Post form into share calendar

Status
Not open for further replies.
B

bear

Hello

I have this code:

Public Sub DisplayForm()

Set myFolder = Session.GetDefaultFolder(olFolderCalendar)

Set myItem = myFolder.Items.Add("IPM.Appointment.IndianFormv1")

myItem.Display

End Sub

Code posts custom form into my local calendar.

Problem:

I need to post the form into:

All Public Folders - Transportation Calendar. Transportation Calendar is being pulled from exchange on remote site.

Any help would be appreciated. .
 
S

Sue Mosher [MVP]

To get a non-default folder, you need to walk the folder hierarchy using the

Folders collections or use a function that does that for you. For examples,

see:

http://www.outlookcode.com/codedetail.aspx?id=628 - uses a folder path

string

http://www.outlookcode.com/codedetail.aspx?id=492 - searches for a folder by

name

http://www.outlookcode.com/codedetail.aspx?id=1164 - uses a folder path

string in the Public Folders hierarchy

Sue Mosher

"bear" <swin_1234[at]yahoo[dot]com> wrote in message

news:Oy%23JbYLZKHA.2160@TK2MSFTNGP02.phx.gbl...
> Hello
> I have this code:

> Public Sub DisplayForm()
> Set myFolder = Session.GetDefaultFolder(olFolderCalendar)
> Set myItem = myFolder.Items.Add("IPM.Appointment.IndianFormv1")
> myItem.Display
> End Sub

> Code posts custom form into my local calendar.
> Problem:

> I need to post the form into: All Public Folders - Transportation
> Calendar. Transportation Calendar is being pulled from exchange on remote
> site.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M Custom form on one page to post contents on second page Outlook VBA and Custom Forms 0
A Post Form Follow Up Flag Using Outlook 4
A POST customized as a form Using Outlook 2
Fozzie Bear Cannot post "Sneaky URL"!! Using Outlook.com accounts in Outlook 2
PMR0001 Mydomain Outlook.com and Exchange post EAS Using Outlook 1
W "Post" icon on some contacts Using Outlook 1
wallisellener Unable to reply/post/create new thread using Chrome BCM (Business Contact Manager) 5
H Where to post code in Outlook Outlook VBA and Custom Forms 1
M First post -help with managing two calendars Outlook 2010 /Exchange 2010 Using Outlook 0
B Excel 2010 vba to post appts to different outlook calendars at the same time Using Outlook 6
C How do I share/post my calendar to public folders Exchange Server Administration 3
T OWA and post dating Exchange Server Administration 1
I Post outlook connector installation syndrome - Standby gone Using Outlook.com accounts in Outlook 3
R Hi, ken, GetState problem again, come in this post please? Outlook VBA and Custom Forms 4
M Outlook 2010 How could I globally redesign an outlook template form/region/inspector template used to display mail lists or an individual mails? Outlook VBA and Custom Forms 0
A How to stop user form from disapearing once mail window is closed? Outlook VBA and Custom Forms 0
K can't get custom form to update multiple contacts using VBA Outlook VBA and Custom Forms 3
V Form data not sending for some users Outlook VBA and Custom Forms 2
H Custom Outlook Contact Form VBA Outlook VBA and Custom Forms 1
witzker HowTo Change message Class of contact form Outlook VBA and Custom Forms 0
A VBscript stops running after updating form Outlook VBA and Custom Forms 1
witzker HowTo start a macro with an Button in OL contact form Outlook VBA and Custom Forms 12
D Emailed form is blank Outlook VBA and Custom Forms 0
F Validation on custom task form after task acceptance Outlook VBA and Custom Forms 1
C Add Form to Appointments Received, Automatically Outlook VBA and Custom Forms 6
V Date and/or time error in Outlook Form Outlook VBA and Custom Forms 0
A Form Position with Dual Monitors Outlook VBA and Custom Forms 2
I Error saving screenshots in a custom form in outlook 2016, outlook 365 - ok in outlook 2013, outlook 2010 Outlook VBA and Custom Forms 5
M VbScript for Command Button on Contacts Custom Form Using Outlook 1
G Other users can't see P.2 with custom fields in Form Outlook VBA and Custom Forms 0
O Create a custom contact form - questions before messing things up... Outlook VBA and Custom Forms 4
L Custom Form Tutoral? Outlook VBA and Custom Forms 6
D Lost Access to Custom Form Outlook VBA and Custom Forms 4
A Form style totally changes Outlook VBA and Custom Forms 2
M vCard does not have user-defined fields from my custom contact form (365) Using Outlook 1
S Outlook Custom Form Scripting only working when clicking on "Run this form" Outlook VBA and Custom Forms 2
V Making a Date field mandatory in outlook form Outlook VBA and Custom Forms 2
R Add 'Company' to Select Names Form Using Outlook 1
Victor_50 Outlook 2013 Custom Contact Form starts with "E-mail 2" Outlook VBA and Custom Forms 2
C Custom Form (seperate layout pages and message reading pane) Outlook VBA and Custom Forms 0
C Reading Pane for Custom Form Outlook VBA and Custom Forms 2
N Custom Form Controls Not Visible To Recipient Outlook VBA and Custom Forms 3
BretAB Is it possible to add a lookup field to a Message form? Outlook VBA and Custom Forms 4
Randy Redekopp How To Merge Contact Info to Email Custom Form Template Using Outlook 2
D Problem with custom form including _DocSiteControl1 Outlook VBA and Custom Forms 0
C Custom Outlook Form - Populate Information from Radio Button / Check Box Using Outlook 0
J Program Checkbox that will activate a text box in a Outlook fallible form. Outlook VBA and Custom Forms 1
W Message class changes of a custom form changes to the default form Using Outlook 2
A Possible to hide ribbon with custom appointment form? Outlook VBA and Custom Forms 3
S Custom Form, copy user field data to message body Outlook VBA and Custom Forms 12

Similar threads

Top