Hi,
The last part of my code follows:
======================================================================================
' CONTACT DETAIL
###############################################################
objSelection.Font.Size = 8
If strCell <> "" Then
strDisplayCell = " | Cell: " + strCell
End if
objSelection.TypeText "t " + strOffice + " | f " + strFax + " | c " +
strCell + " | "
objSelection.Hyperlinks.Add objSelection.range, "mailto:" & strEmail, ,
, strEmail
objSelection.TypeText " | "
objSelection.Hyperlinks.Add objSelection.range, "http://" & strweb, ,
strweb
' FORMAT HYPERLINKS
############################################################
For Each hLink In objDoc.Hyperlinks
hLink.range.font.Name = "century gothic"
hLink.range.font.color = wdColorBlue
hLink.range.font.bold = true
hLink.range.font.Size = 7
Next ' hLink
' WRITE MyDefaultSig
###########################################################
' ------------------------------------------------------------------------------
Set objSelection = objDoc.Range()
' ------------------------------------------------------------------------------
'
##############################################################################
objSignatureEntries.Add "MyDefaultSig", objSelection
objSignatureObject.NewMessageSignature = "MyDefaultSig"
' DELETE extra paragraphs
######################################################
Set objSelection = objDoc.Paragraphs.Last.Range
msgbox objSelection.Text
If objSelection.Text = vbCr Then objSelection.Delete
'
##############################################################################
objDoc.Saved = True
objWord.Quit
======================================================================================
the debug msgbox indicates that the last paragraph is the contact
information (email, web etc ...)
I assume my code (see DELETE extra paragraphs) is functionally the same as
the suggested code.
Regards,
Adri