Another question concerning the code above. I want to check if a checkbox in the same
form ist active. If this is true I want to give a value to the var verteiler. But something is
wrong with the bold line in the code. What is the problem. I also tried true instead of
WAHR.
Dim objOutlook
Dim itmAppt
Dim verteiler
dim chec
Set chec = XDocument.DOM.selectSingleNode("/my:meineFelder/my:CheckMM")
if chec = WAHR then
verteiler = "Gueldenring, Marco"
end if
if verteiler = "" then
verteiler = "grrr"
end if
Set objOutlook = CreateObject("Outlook.Application")
Set itmAppt = objOutlook.CreateItem(1)
itmAppt.Resources = XDocument.DOM.selectSingleNode("/my:meineFelder/my:KickOffRaum").text
itmAppt.Subject = "Neues KickOff Meeting für Projektnummer " & XDocument.DOM.selectSingleNode("/my:meineFelder/my:PM_NR").text
itmAppt.Start = XDocument.DOM.selectSingleNode("/my:meineFelder/my:KickOffDatum").text
itmAppt.Duration = 60
itmAppt.AllDayEvent = False
itmAppt.ReminderSet = True
itmAppt.ReminderMinutesBeforeStart = 5
Set myRequiredAttendee = itmAppt.Recipients.Add (verteiler)
myRequiredAttendee.Type = 1
itmAppt.display