Sol Apache was telling us:
Sol Apache nous racontait que :
> In most user forms I create the sender¹s email address using the
> firstname$ + ³.² + lastname$ (field1.value, field2.value) then adding
[quoted text clipped - 19 lines]
> have not a clue as to what I can put at the declaration part of the
> macro.
At its simplest, you could try:
Dim strEmailEnd As String
With ActiveDocument.Bookmarks("h2").Range
strEmailEnd = Mid(.Text, 5, 13)
End With
Depending on the actual content of the bookmark, you will probably need to
parse the bookmarked text in a different manner

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Sol Apache - 12 Dec 2006 22:18 GMT
Jean-Guy, thanks for the suggestion. I have at last thought of a workaround
and that is to create an invisible textbox called ³TexEmailEnd² and when I
initialize my two combo boxes mentioned in earlier emails I have added this
line:
TexEmailEnd.Text = ³smalco2.com²
Amazingly this works! The value gets added to my email$ and placed at the
appropriate bookmark.
Thx
Sol
(Still nowhere near becoming an MVP in Visual Basic...)
On 12/12/06 02:07, in article eb86UJZHHHA.4068@TK2MSFTNGP03.phx.gbl,
> Sol Apache was telling us:
> Sol Apache nous racontait que :
[quoted text clipped - 33 lines]
> Depending on the actual content of the bookmark, you will probably need to
> parse the bookmarked text in a different manner
Jean-Guy Marcil - 15 Dec 2006 16:02 GMT
Sol Apache was telling us:
Sol Apache nous racontait que :
> Jean-Guy, thanks for the suggestion. I have at last thought of a
> workaround and that is to create an invisible textbox called
[quoted text clipped - 5 lines]
> Amazingly this works! The value gets added to my email$ and placed at
> the appropriate bookmark.
I do not understand why you need an invisible textbox to store a value when
you could simply use a constant in the code....

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Sol Apache - 17 Dec 2006 11:25 GMT
Hi Jean-Guy
The reason was because I could not work out how to put your suggestion into
my code.
Sol
On 15/12/06 16:02, in article OgMJjJGIHHA.1008@TK2MSFTNGP06.phx.gbl,
> Sol Apache was telling us:
> Sol Apache nous racontait que :
[quoted text clipped - 11 lines]
> I do not understand why you need an invisible textbox to store a value when
> you could simply use a constant in the code....