Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 15th, 2004, 05:49 AM
Authorized User
 
Join Date: Dec 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Outlook appointments

Hello All,

I am trying to create an appointment in outlook using VBA. I can create the appointment and add the necessary attendees. The problem is that I want to send the appointment to all the attendees except myself as I don’t want this to display in my calender. Below is the code. Can any one help??

Dim obj0app As Outlook.Application
Dim objappt As Outlook.AppointmentItem

Set obj0app = CreateObject("Outlook.Application")
Set objappt = obj0app.CreateItem(olAppointmentItem)

With objappt
    .Subject = "Booked Training"
    .Body = "Training Date"
    .ReminderSet = True
    .Start = Date + 3 & " 8:00"
    .End = Date + 3 & " 8:30"
    .ResponseRequested = False
    .RequiredAttendees = "a,b,c"
    .BusyStatus = olBusy
    .Location = "G4"
    .Send
End With






Similar Threads
Thread Thread Starter Forum Replies Last Post
Appointments with Exchange Server [email protected] .NET Web Services 4 January 27th, 2011 04:59 AM
Using Outlook JAnthony Access VBA 0 May 18th, 2006 03:13 PM
Outlook Help ksrmramu Classic ASP Components 0 August 22nd, 2005 07:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.