| | |
Accessing a specific calander when calling outlook.application
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jun 2007
Posts: 1
Reputation:
Solved Threads: 0
I first touched VBscript 4 days ago and so far so good except for one issue I am having.
I have written a scheduling form for Outlook that takes 4 names and then sends out about 20 meeting invites. The problem I am having is directing the program to schedule the meetings on a public calendar and sending the invites to the various attendees from that calendar and not my own calendar.
I have figured out how to do it in VBA but the solution in VBscript has eluded me.
This is a code snippet of one of the objects I am creating. I need this to send from a public calendar and not my personal calander when it is run.
Any help or suggestions would be very welcome. Thanks!
I have written a scheduling form for Outlook that takes 4 names and then sends out about 20 meeting invites. The problem I am having is directing the program to schedule the meetings on a public calendar and sending the invites to the various attendees from that calendar and not my own calendar.
I have figured out how to do it in VBA but the solution in VBscript has eluded me.
This is a code snippet of one of the objects I am creating. I need this to send from a public calendar and not my personal calander when it is run.
Dim StartTime As ValueType Dim EndTime As ValueType StartTime = DateTimePicker1.Value EndTime = DateTimePicker1.Value.AddHours(9) Dim objOL 'As Outlook.Application Dim objAppt 'As Outlook.AppointmentItem Const olAppointmentItem = 1 Const olMeeting = 1 objOL = CreateObject("Outlook.Application") objAppt = objOL.CreateItem(olAppointmentItem) 'Dim Counter As Integer 'Counter = 0 'Do While Counter < 5 'This is the appointment for the first task With objAppt .Subject = ((Label1.Text) & "(" & (TextBox1.Text) & ")") .start = StartTime .End = EndTime 'MsgBox(EndTime) ' make it a meeting request .MeetingStatus = olMeeting .RequiredAttendees = TextBox1.Text .Send() End With
Any help or suggestions would be very welcome. Thanks!
![]() |
Similar Threads
- outlook and php (PHP)
- Drag n drop an mailitem from MS Outlook to C# application (C#)
- Access your Outlook application using PHP? (PHP)
- Opening a copy of Outlook (Visual Basic 4 / 5 / 6)
- Opening Outlook Template (Visual Basic 4 / 5 / 6)
- VBScript disk quota program - whats up? (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Unloading a form?
- Next Thread: error
Views: 2198 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





