Solved

Make all past appointments private

Posted on 2006-11-17
7
828 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
  • 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

If you don't know how to downgrade, my instructions below should be helpful.
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

770 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