Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Email to from Excel
Hi,
I have created a database for my company to use. I am looking for a code or routine to help me on the following: An email address is shown on the cell D12 I have written a code to change the cell contents from formula to email. I would like a button to copy the email address and open outlook to create an email to the specific address shown. I can do the rest but i am really stuck on this one. If outlook is open, it may need an error handler to stop a second instance opening. Summary: i select my contact, press a button, outlook opens and the email address is in the "send to" Regards, Nigel |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Email to from Excel
See http://ww.rondebruin.nl/sendmail.htm where this is covered.
-- HTH Bob Phillips "Nigel" wrote in message ... Hi, I have created a database for my company to use. I am looking for a code or routine to help me on the following: An email address is shown on the cell D12 I have written a code to change the cell contents from formula to email. I would like a button to copy the email address and open outlook to create an email to the specific address shown. I can do the rest but i am really stuck on this one. If outlook is open, it may need an error handler to stop a second instance opening. Summary: i select my contact, press a button, outlook opens and the email address is in the "send to" Regards, Nigel |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Email to from Excel
Hi,
There doesnt seem to be what i am looking for. it seems that everything on the site will automatically send a sheet or a book. i only want to open outlook to send my own email with my own subject etc. unless i am not seeing something. nige "Bob Phillips" wrote: See http://ww.rondebruin.nl/sendmail.htm where this is covered. -- HTH Bob Phillips "Nigel" wrote in message ... Hi, I have created a database for my company to use. I am looking for a code or routine to help me on the following: An email address is shown on the cell D12 I have written a code to change the cell contents from formula to email. I would like a button to copy the email address and open outlook to create an email to the specific address shown. I can do the rest but i am really stuck on this one. If outlook is open, it may need an error handler to stop a second instance opening. Summary: i select my contact, press a button, outlook opens and the email address is in the "send to" Regards, Nigel |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Email to from Excel
Just modify the code so it doesn't send or add an attachment. The basic
code you need is there. -- Regards, Tom Ogilvy "Nigel" wrote in message ... Hi, There doesnt seem to be what i am looking for. it seems that everything on the site will automatically send a sheet or a book. i only want to open outlook to send my own email with my own subject etc. unless i am not seeing something. nige "Bob Phillips" wrote: See http://ww.rondebruin.nl/sendmail.htm where this is covered. -- HTH Bob Phillips "Nigel" wrote in message ... Hi, I have created a database for my company to use. I am looking for a code or routine to help me on the following: An email address is shown on the cell D12 I have written a code to change the cell contents from formula to email. I would like a button to copy the email address and open outlook to create an email to the specific address shown. I can do the rest but i am really stuck on this one. If outlook is open, it may need an error handler to stop a second instance opening. Summary: i select my contact, press a button, outlook opens and the email address is in the "send to" Regards, Nigel |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Email to from Excel
Here is the basic code
Sub SendEmail() Dim oOutlook As Object Dim oMailItem As Object Dim oRecipient As Object Dim oNameSpace As Object Set oOutlook = CreateObject("Outlook.Application") Set oNameSpace = oOutlook.GetNameSpace("MAPI") oNameSpace.Logon , , True Set oMailItem = oOutlook.CreateItem(0) Set oRecipient = oMailItem.Recipients.Add(Range("D12").value) oRecipient.Type = 1 oMailItem.Subject = "an email from me" oMailItem.Body = "How are you" oMailItem.Send End Sub -- HTH Bob Phillips "Nigel" wrote in message ... Hi, There doesnt seem to be what i am looking for. it seems that everything on the site will automatically send a sheet or a book. i only want to open outlook to send my own email with my own subject etc. unless i am not seeing something. nige "Bob Phillips" wrote: See http://ww.rondebruin.nl/sendmail.htm where this is covered. -- HTH Bob Phillips "Nigel" wrote in message ... Hi, I have created a database for my company to use. I am looking for a code or routine to help me on the following: An email address is shown on the cell D12 I have written a code to change the cell contents from formula to email. I would like a button to copy the email address and open outlook to create an email to the specific address shown. I can do the rest but i am really stuck on this one. If outlook is open, it may need an error handler to stop a second instance opening. Summary: i select my contact, press a button, outlook opens and the email address is in the "send to" Regards, Nigel |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
send email to each customer email in excel sheet. | Excel Discussion (Misc queries) | |||
Email addresses in Excel need to format for mass email | Excel Worksheet Functions | |||
Email editor closes when forwarding Excel-embedded email | Setting up and Configuration of Excel | |||
working on excel document in email saved changes in email not in . | Excel Discussion (Misc queries) | |||
body of email disappears when I send an email from Excel | Excel Discussion (Misc queries) |