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
O How to delete a forum post? Using Outlook 4
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
V Latest Changes to form not appearing for some users Outlook VBA and Custom Forms 3
J Does the .fdm contain my custom form? How to make ol use it? - ol2007 Outlook VBA and Custom Forms 4
J ol2021 custom form not displaying pics Outlook VBA and Custom Forms 37
bdsermons Outlook 365 command button in outlook form Outlook VBA and Custom Forms 5
wayneame Changing the Form Used by Existing Task Items in a Folder Outlook VBA and Custom Forms 3
N Contact Form Notes Field Touch vs Mouse Using Outlook 0
cbufacchi Outlook 365 Populate custom Outlook Appoint form Outlook VBA and Custom Forms 2
C Create Meeting With Custom Form Outlook VBA and Custom Forms 2
W Designer Form 2013 and Script ? how ? Outlook VBA and Custom Forms 1
J Read Outlook Form fields Outlook VBA and Custom Forms 3
V Compound IF, OR, AND in Outlook form Outlook VBA and Custom Forms 4
J custom form not displaying pictures Outlook VBA and Custom Forms 7
I Button PDF in Outlook Contact custom form Outlook VBA and Custom Forms 1
K Font Sizing in Custom Form Regions for Contacts Outlook VBA and Custom Forms 1
V Validating Outlook form with "OR" and "AND" Outlook VBA and Custom Forms 1
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

Similar threads

Top