create email, addresses to be added by user

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Good Day,

Is there a way to email a specific sheet, but do not specify the email
address? I want the user to be able to add the required email addresses
because they will change.

any help would be greatly appreciated.
 
Hi Carlee,

See Ron de Bruin's sample code at:

http://www.rondebruin.nl/mail/folder1/mail2.htm

and

http://www.rondebruin.nl/mail/folder2/mail2.htm

In either case, insert the following code at the top of
Ron's code:

Dim Res As String

Res = InputBox(Prompt:="Insert recipient's email address", _
Title:="Email Address")

If Res = vbNullString _
Or Not Res Like "*@*" Then
Exit Sub
End If

Then, for the first macro, replace:

.SendMail "(e-mail address removed)", _

with

.SendMail Res, _


For the second macro, replace:

.To = "(e-mail address removed)"

with

.To = Res
 
Hi Norman,

Thanks for the help. I will put this to use.

Question. Is it possible to just have the code create the email (in
outlook, express or windows mail), without an email addresses. That way the
user can select from previously saved email addresses in their email program?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top