Solved

Make all past appointments private

Posted on 2006-11-17
7
833 Views
Last Modified: 2012-06-27
Hi All,

We're migrating to an exchange server in the future at which point we'll all being sharing calendars.  Is there an easy way to mark all of my past appointments as Private?

Thanks, Ron
0
Comment
Question by:larkinstreetyouth
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 76

Accepted Solution

by:
David Lee earned 200 total points
ID: 17971333
Hi larkinstreetyouth,

Assuming that by "all of my past appointments" you mean all the appointments currently on your calendar, then the script below will get the job done.  Follow these instructions to use this.

1.  Start Outlook.
2.  Click Tools->Macro->Visual Basic Editor.
3.  If not already expanded, expand Modules and click on Module1.
4.  Copy the code below and paste it into the right-hand pane of the VB Editor.
5.  Edit the code as needed.  I placed comment lines where things need to change.
6.  Click the diskette icon on the toolbar to save the changes.
7.  Close the VB Editor.
8.  Click Tools->Macro->Security.
9.  Change the Security Level setting to Medium.
10.  Switch to your calendar.
11.  Run the macro.

Sub MakeAllAppointmentsPrivate()
    Dim olkAppt As Outlook.AppointmentItem
    For Each olkAppt In Application.ActiveExplorer.CurrentFolder.Items
        olkAppt.Sensitivity = olPrivate
        olkAppt.Save
    Next
    Set olkAppt = Nothing
    MsgBox "All done!"
End Sub

Cheers!
0
 

Author Comment

by:larkinstreetyouth
ID: 17981636
Looks great!  I have no prior knowledge of Visaul Basic so...

I'm not sure which are the copmment lines and what data i need to change.

Thanks!
~Ron
0
 
LVL 76

Expert Comment

by:David Lee
ID: 17982827
Hi, Ron.  

Comment lines would appear in green in Outlook's VB editor.  In this case there aren't any comment lines.  Sorry for the confusion, that's a generic set of instructions I use.
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

Author Comment

by:larkinstreetyouth
ID: 17982908
When I try to run it, I get a run-time error 13 type mismatch. When I debug it stops at the following line:  For Each olkAppt In Application.ActiveExplorer.CurrentFolder.Items
0
 
LVL 76

Expert Comment

by:David Lee
ID: 17983044
Did you select the calendar folder?
0
 

Author Comment

by:larkinstreetyouth
ID: 17983348
Ahhh, way cool. Thank you so much!

~Ron
0
 
LVL 76

Expert Comment

by:David Lee
ID: 17983393
You're welcome.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question