Sorry another question, if I may. The recipient's email address and the
subject line of the email will vary from document to document. However, the
Word document from which the NotesEmail macro is run has fields in it for the
user to first insert the email address and the subject line.
Therefore, is it possible to bookmark the email address and subject line in
the Word document and write into the NotesEmail code that the email address
and subject line in Lotus Notes be taken from the bookmarks? Or is there
another way I could achieve this?
Thank you kindly for any suggestions.
Hi MIrving,
so many questions I can't answer,
at least as far as it regards your first reply.
I don't know much about Lotus Notes,
in fact, I hate it, and its documentation is very poor.
I have to use Notes at work and kind of programmed it a bit
mostly by using the code from the source I gave you
whithout understanding much of what I was doing.
You might have to explore Lotus Script in addition,
very much like VBA, which doesn't make things easier,
as you never know where the differences are.
>Sorry another question, if I may. The recipient's email address and the
>subject line of the email will vary from document to document. However, the
[quoted text clipped - 5 lines]
>and subject line in Lotus Notes be taken from the bookmarks? Or is there
>another way I could achieve this?
You get the text from a field like that:
strEmpfaenger = activedocument.fields(1).result
You get the text from a bookmark like that:
strEmpfaenger = activedocument.bookmarks("Sendto").range.text
That is ordinary WordVBA.
If you got problems with that, start a new thread.
Some knowlegable people might not follow a thread about Lotus Notes.
HTH
--
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Vista Small Business, Office XP
MIrving - 19 Nov 2007 10:42 GMT
Thank you Helmut. You have been more than helpful. :)
> Hi MIrving,
>
[quoted text clipped - 41 lines]
>
> Vista Small Business, Office XP
MIrving - 01 Dec 2007 11:25 GMT
Helmut - thank you very much for the code re: the bookmarks. That is working
perfectly.
The only thing I would now like to improve on if possible is to write the
code so that instead of opening a blank email, it opens an email with my
standard signature (my contact details). Usually in Lotus Notes, when I
click on 'New Memo' I automatically get my signature. Is it possible to
amend the following to achieve this:
' Opening the standard-mail data bank / construction new mail document
Call objNotesDB.OPENMAIL
Set objNotesMailDoc = objNotesDB.CREATEDOCUMENT
objNotesMailDoc.Form = "Memo"
Call objNotesMailDoc.Save(True, False)
Thank you for any suggestions.
> Hi MIrving,
>
[quoted text clipped - 41 lines]
>
> Vista Small Business, Office XP