PC Review


Reply
Thread Tools Rate Thread

BIRTHDAY IN CALENDER

 
 
E.Zenker
Guest
Posts: n/a
 
      7th Nov 2004
i found this code on outlook.net
can anyone be so kind and help me to extend the code to

->check if the birthday is already in the calender
->if it is there
->go to the next contakt.

To avoid double birthdayentries.

Thanks for your replay
E.Zenker

Sub BirthdayImport()
' Quelle: Unbekannter Autor - Vielen Dank!
' Ich habe nur die Kommentare und die Messageboxen hinzugefügt

MsgBox "Dieses Makro erzeugt jährliche Termine aus den Geburtstagen der
Kontakte." & vbCrLf & "Wählen Sie im folgenden Dialog den Kontakteordner
aus, den dieses Makro durchsuchen soll.", vbInformation, "Geburtstage im
Kalender eintragen"


Dim myFolder As MAPIFolder
' Öffne Ordner-Dialog zum Auswählen des Kontakte-Ordners
Set myFolder = Session.PickFolder
For i = myFolder.Items.Count To 1 Step -1
If myFolder.Items(i).Class = 40 Then
myFolder.Items(i).Display
' den richtigen Geburtstag in mybirthday merken
mybirthday = myFolder.Items(i).Birthday
' Geburtstag mit beliebigem Datum überschreiben,
' um eine Änderung zu erzeugen
myFolder.Items(i).Birthday = "12.12.2000 "
' nun wieder richtiges Datum aus mybirthday eintragen
myFolder.Items(i).Birthday = mybirthday
' Kontakt erneut speichern.
' Jetzt arbeitet Outlook im Hintergrund automatisch und erstellt
' einen jährlichen Eintrag im Kalender
myFolder.Items(i).Save
' Kontakt schließen
myFolder.Items(i).Close 0
End If
' zum nächsten Kontakt gehen und alles wieder von vorne
Next i

MsgBox "Fertig!" & vbCrLf & "Es wurden " & myFolder.Items.Count & " Kontakte
durchsucht.", vbInformation, "Information"


End Sub




 
Reply With Quote
 
 
 
 
Chuck Davis
Guest
Posts: n/a
 
      7th Nov 2004

>-----Original Message-----
>i found this code on outlook.net
>can anyone be so kind and help me to extend the code to
>
>->check if the birthday is already in the calender
>->if it is there
>->go to the next contakt.
>
>To avoid double birthdayentries.
>
>Thanks for your replay
>E.Zenker
>
>Sub BirthdayImport()
>' Quelle: Unbekannter Autor - Vielen Dank!
>' Ich habe nur die Kommentare und die Messageboxen hinzugefügt
>
>MsgBox "Dieses Makro erzeugt jährliche Termine aus den

Geburtstagen der
>Kontakte." & vbCrLf & "Wählen Sie im folgenden Dialog den

Kontakteordner
>aus, den dieses Makro durchsuchen soll.", vbInformation,

"Geburtstage im
>Kalender eintragen"
>
>
>Dim myFolder As MAPIFolder
>' Öffne Ordner-Dialog zum Auswählen des Kontakte-Ordners
>Set myFolder = Session.PickFolder
>For i = myFolder.Items.Count To 1 Step -1
>If myFolder.Items(i).Class = 40 Then
>myFolder.Items(i).Display
>' den richtigen Geburtstag in mybirthday merken
>mybirthday = myFolder.Items(i).Birthday
>' Geburtstag mit beliebigem Datum überschreiben,
>' um eine Änderung zu erzeugen
>myFolder.Items(i).Birthday = "12.12.2000 "
>' nun wieder richtiges Datum aus mybirthday eintragen
>myFolder.Items(i).Birthday = mybirthday
>' Kontakt erneut speichern.
>' Jetzt arbeitet Outlook im Hintergrund automatisch und

erstellt
>' einen jährlichen Eintrag im Kalender
>myFolder.Items(i).Save
>' Kontakt schließen
>myFolder.Items(i).Close 0
>End If
>' zum nächsten Kontakt gehen und alles wieder von vorne
>Next i
>
>MsgBox "Fertig!" & vbCrLf & "Es wurden " &

myFolder.Items.Count & " Kontakte
>durchsucht.", vbInformation, "Information"
>
>
>End Sub
>
>
>
>
>.
>

In Outlook 2003, open the contact. Click on the Details
tab. midpoing on the right is a field called Birthday:
Enter the mo/da and it will create a recurring occurance.
In the Week view, it will appear at the top of the day. (I
haven't looked at other views)
 
Reply With Quote
 
E.Zenker
Guest
Posts: n/a
 
      7th Nov 2004
Thanks for your answer
I#m working with OL2002 (XP) and there are too many contacts to open each
manually therefore the macrocode! and still the problem with double
birthdayentries.


"Chuck Davis" <(E-Mail Removed)> schrieb im Newsbeitrag
news:07e701c4c478$f15add00$(E-Mail Removed)...

>-----Original Message-----
>i found this code on outlook.net
>can anyone be so kind and help me to extend the code to
>
>->check if the birthday is already in the calender
>->if it is there
>->go to the next contakt.
>
>To avoid double birthdayentries.
>
>Thanks for your replay
>E.Zenker
>
>Sub BirthdayImport()
>' Quelle: Unbekannter Autor - Vielen Dank!
>' Ich habe nur die Kommentare und die Messageboxen hinzugefügt
>
>MsgBox "Dieses Makro erzeugt jährliche Termine aus den

Geburtstagen der
>Kontakte." & vbCrLf & "Wählen Sie im folgenden Dialog den

Kontakteordner
>aus, den dieses Makro durchsuchen soll.", vbInformation,

"Geburtstage im
>Kalender eintragen"
>
>
>Dim myFolder As MAPIFolder
>' Öffne Ordner-Dialog zum Auswählen des Kontakte-Ordners
>Set myFolder = Session.PickFolder
>For i = myFolder.Items.Count To 1 Step -1
>If myFolder.Items(i).Class = 40 Then
>myFolder.Items(i).Display
>' den richtigen Geburtstag in mybirthday merken
>mybirthday = myFolder.Items(i).Birthday
>' Geburtstag mit beliebigem Datum überschreiben,
>' um eine Änderung zu erzeugen
>myFolder.Items(i).Birthday = "12.12.2000 "
>' nun wieder richtiges Datum aus mybirthday eintragen
>myFolder.Items(i).Birthday = mybirthday
>' Kontakt erneut speichern.
>' Jetzt arbeitet Outlook im Hintergrund automatisch und

erstellt
>' einen jährlichen Eintrag im Kalender
>myFolder.Items(i).Save
>' Kontakt schließen
>myFolder.Items(i).Close 0
>End If
>' zum nächsten Kontakt gehen und alles wieder von vorne
>Next i
>
>MsgBox "Fertig!" & vbCrLf & "Es wurden " &

myFolder.Items.Count & " Kontakte
>durchsucht.", vbInformation, "Information"
>
>
>End Sub
>
>
>
>
>.
>

In Outlook 2003, open the contact. Click on the Details
tab. midpoing on the right is a field called Birthday:
Enter the mo/da and it will create a recurring occurance.
In the Week view, it will appear at the top of the day. (I
haven't looked at other views)


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BIRTHDAY IN CALENDER E.Zenker Microsoft Outlook Printing 0 7th Nov 2004 12:35 AM
BIRTHDAY IN CALENDER E.Zenker Microsoft Outlook Form Programming 0 7th Nov 2004 12:35 AM
BIRTHDAY IN CALENDER E.Zenker Microsoft Outlook VBA Programming 0 7th Nov 2004 12:35 AM
BIRTHDAY IN CALENDER E.Zenker Microsoft Outlook Contacts 0 7th Nov 2004 12:35 AM
BIRTHDAY IN CALENDER E.Zenker Microsoft Outlook Calendar 0 7th Nov 2004 12:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:06 AM.