LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Using VBA to send email based on form response

Jeff, if you can get here your laughing,

http://www.rondebruin.nl/sendmail.htm

(Thanks to Ron de Bruin)

If they do not enter the email address then an email will not be sent?


You could use application.username, or windows.username or somthing to
get a user name, and then try and get the users e-mail adress from the
outlook address book, but this will need alot(well more) of codeing,
and you'll have to access outlook from excel (i'm not mega sure but i
think maybe outlook uses vb sripit?) anyway. On top of all this there
is no guarantee that the system and excel user name will be a match
for the e-mail address (unless you know this is not the case for your
network). For example, my username on the pc is 7537462 (or whatever),
and my excel "user name" is BT, so that wouldn't be any good.

You could ask them there name, (say in a text box, or your drop down
box) and use this to get the e-mail addres from outlook, but agian, if
john smith works at you place you could be introuble!

I think you have to get it from another box - i dont think it will be
an inconvenience for your users.

Good Luck
Ross


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
send email to each customer email in excel sheet. -keevill- Excel Discussion (Misc queries) 3 July 17th 08 02:33 PM
can I get excel to send an email based on a cell result? rasty Excel Discussion (Misc queries) 1 June 7th 07 09:27 AM
send wkbk as an email attachment with an email address copied from SueInAtl Excel Discussion (Misc queries) 0 May 21st 07 10:53 PM
Form to send by Email Cloudburst99 Excel Discussion (Misc queries) 0 April 21st 05 03:00 PM
cmd button, send form via email andy[_5_] Excel Programming 1 March 6th 04 07:26 AM


All times are GMT +1. The time now is 06:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"