How to recreate Birthdays Appointments after importing Contacts

A

Alexey Korobov

I have imported contacts from .pst file, but Outlook has not created the
appointmens for birthdays. How can I automate this?
 
D

Diane Poremsky [MVP]

you could open, edit and save each item so outlook recreates them... but
unless you have nothing better to do with your time, the add-in is well
worth it.









** Please include your Outlook version, Account type, and Windows Version
when requesting assistance **
 
A

Alexey Korobov

If smb knows, how can I do this automaticly? I have wrote the script that
changes the birthday date, but it doesn't recreates appointmenst. How can I
initiate this automaticly:
Sub birth()

Dim olns As Outlook.NameSpace
Dim oConItems As Outlook.Items
Dim iNumItems As Integer
Set ol = New Outlook.Application
Set olns = ol.GetNamespace("MAPI")
Set oConItems = olns.GetDefaultFolder(olFolderContacts).Items
iNumItems = oConItems.Count
For I = 1 To iNumItems
Set oCurItem = oConItems.Item(I)
If (oCurItem.Birthday <> "01.01.4501") Then
'MsgBox oCurItem.Birthday
brth = oCurItem.Birthday
oCurItem.Birthday = "01.01.4501"
oCurItem.Close olSave
oCurItem.Birthday = brth
oCurItem.Close olSave

End If

Next
Set oConItems = Nothing
Set olns = Nothing
Set ol = Nothing


End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top