Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9003923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:46:54+00:00 2026-06-16T00:46:54+00:00

I am creating outlook appointment items programmatically using VBA in MS Access and the

  • 0

I am creating outlook appointment items programmatically using VBA in MS Access and the Outlook Object Model (though the language shouldn’t matter).

Items are added to multiple calendars belonging to a single user that other users are given read/write permissions to. The users have no reason to create or edit appointments on the calendar using Outlook. Appointment data is then stored in backend tables. Essentially, Outlook is being used as my “calendar view.”

I am having major issues, however, with users changing appointment items directly in Outlook, which in turn do not update in my backend.

I would love an updateable “ReadOnly” property that can be set per appointment item and that disallows changes unless set back to False…but don’t think one exists. Any suggestions?

Things I’ve tried or dismissed as solutions:

  • Reminding users of the rules.
  • Script that finds all mismatched items – this works but is not practical.
  • Custom Outlook form that doesn’t allow edits – doesn’t prevent users from dragging appointment around.

UPDATE:
Using the suggestion by nemmy below, I have manged to get this far. This only works if the user selects the appointment before changing anything. It does not work if the appointment is selected and dragged in the same click.

Private WithEvents objExplorer As Outlook.Explorer
Private WithEvents appt As Outlook.AppointmentItem

Public Sub Application_Startup()
Set objExplorer = Application.ActiveExplorer
End Sub

Private Sub objExplorer_SelectionChange()
 If objExplorer.CurrentFolder.DefaultItemType = olAppointmentItem Then
    If objExplorer.Selection.Count > 0 Then
      Set appt = objExplorer.Selection(1)
    End If
  End If
End Sub


Private Sub appt_Write(Cancel As Boolean)
If Not appt.Mileage = "" Then 'This appointment was added by my program
    MsgBox ("Do not change appointments directly in Outlook!")
    Cancel = True
    appt.Close (olDiscard)
End If
End Sub
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:46:56+00:00Added an answer on June 16, 2026 at 12:46 am

    Can you hook into the Write Event of appointment items? You could prevent changes being made that way. Something like below might work (Disclaimer not tested):

    Public WithEvents myItem As Outlook.AppointmentItem 
    
    Sub Initialize_handler() 
    
     Set myItem = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderCalendar).Items("Your Appointment") 
    
    End Sub 
    
    
    
    Private Sub myItem_Write(Cancel as boolean) 
    
      Cancel=true 
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating an Outlook Automation App using Ms Access. My question is: Is
I am creating an Outlook 2003 version of a Outlook 2007 add-in for appointment
I'm creating outlook appointments using webdav. I'm using following post body to create the
I'm creating an Addin to be used in Outlook 2010 using Visual Studio 2008
I am creating an appointment in Outlook through java code. here I can set
I am creating a pst file in Outlook using C#, and Addin express. The
I'm creating a solution in VS2010 for Outlook 2010 using C# that is comprised
I am sending an email through Outlook using VB.Net code. The syntax for creating
I am creating an Outlook Mail Item object and watching for the Send event.
I've created a VB.Net application that starts by creating an Outlook application object. I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.