Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / September 2007

Tip: Looking for answers? Try searching our database.

Variable for email address sender

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jan Kuijt - 20 Sep 2007 17:48 GMT
Hi,

I have designed a message form in Outlook 2002. I use a clickable 'Submit'
button.

De code is (thanks Sue)

Sub Submit_Click()
    Item.To="userx@domain.com"
    Item.Send
End Sub

Now I want every time a user sends the form he receives a copy to his own
mailbox.
(For other reasons I cannot use the Sent Items for that)

So what has to be the variabele for: email address sender.

Sub Submit_Click()
    Item.To="user@domain.com"
    Item.BCC= email address sender
    Item.Send
End Sub

Thanks in advance,

Jan Kuijt
Sue Mosher [MVP-Outlook] - 25 Sep 2007 18:04 GMT
You can try Application.Session.CurrentUser.Address but (a) it will give you a security prompt and (b) it won't necessarily work, depending on the type of mail account in use.

Signature

Sue Mosher, Outlook MVP
  Author of Microsoft Outlook 2007 Programming:
    Jumpstart for Power Users and Administrators
   http://www.outlookcode.com/article.aspx?id=54

> Hi,
>
[quoted text clipped - 23 lines]
>
> Jan Kuijt
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.