N
nYssa
Hello,
My client wants the signature of the current user to show up in the
appointment body of my custom form. I found code that will work if you want
it to appear in a IPM.Note message, as shown below, but this code does not
work for an appointment. In using the code below I get errors for using the
Item.HTMLBody command and if I change it to be Item.Body, I get no errors,
but no signature appears in the appointment body, and yes the signature does
appear in the message body, already checked that.
Does anyone know if you can add a signature to the body of an appointment
custom form, and if so the code required to do it?
Thanks,
nYssa
CODE:
Function Item_Open()
Const olMailItem = 0
Const olDiscard = 1
If Item_Size = 0 Then
Set objSigMail = Application.CreateItem(olMailItem)
' next line triggers security prompt in OL2002 Sp3
Item.HTMLBody = objSigMail.HTMLBody
objSigMail.Close olDiscard
End If
Set objSigMail = Nothing
End Function
My client wants the signature of the current user to show up in the
appointment body of my custom form. I found code that will work if you want
it to appear in a IPM.Note message, as shown below, but this code does not
work for an appointment. In using the code below I get errors for using the
Item.HTMLBody command and if I change it to be Item.Body, I get no errors,
but no signature appears in the appointment body, and yes the signature does
appear in the message body, already checked that.
Does anyone know if you can add a signature to the body of an appointment
custom form, and if so the code required to do it?
Thanks,
nYssa
CODE:
Function Item_Open()
Const olMailItem = 0
Const olDiscard = 1
If Item_Size = 0 Then
Set objSigMail = Application.CreateItem(olMailItem)
' next line triggers security prompt in OL2002 Sp3
Item.HTMLBody = objSigMail.HTMLBody
objSigMail.Close olDiscard
End If
Set objSigMail = Nothing
End Function