Solved

Make all past appointments private

Posted on 2006-11-17
7
829 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Outlook Free & Paid Tools
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

820 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