A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Variable for email address sender



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 20th 07, 05:48 PM posted to microsoft.public.outlook.program_forms
Jan Kuijt[_2_]
external usenet poster
 
Posts: 1
Default Variable for email address sender

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.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.BCC= email address sender
Item.Send
End Sub

Thanks in advance,

Jan Kuijt

Ads
  #2  
Old September 25th 07, 06:04 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Variable for email address sender

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.

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


"Jan Kuijt" wrote in message ...
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.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.BCC= email address sender
Item.Send
End Sub

Thanks in advance,

Jan Kuijt

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple sender email address for account fileman Outlook - General Queries 5 October 10th 07 05:55 PM
Extract sender of emails email address bony_tony Outlook and VBA 3 March 8th 07 05:53 AM
how to make all email address in my address book "safe sender"? ay Outlook - General Queries 3 March 6th 07 10:05 PM
Remotely setting the "show this address list first" variable for u Maia Outlook - Installation 0 July 25th 06 08:47 PM
Adding sender email address to contacts on receipt czb Outlook - Using Contacts 1 March 20th 06 05:00 PM


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.