#1
|
|||
|
|||
Changing the From field
I work from a shared inbox (Outlook 2003) and whenever I reply or forward from that box I need to change the From field to be my email address not the shared inbox name. I have been just typing in my name there, but I want to address this programatically. I don't see any where to address this code-wise (i.e. objForward.From) so I'm thinking maybe the focus can be set to the From field and then have a string (which is my email addressed) plopped in there to accomplish this. I cannot use On behalf of, nor set this address any other way since I don't have administrative rights to alter this box. Any ideas, suggestions, etc. Oh, and keep in mind I'm a novice at this. I just copied this code below (which was doing something else) and changed it to suit my purposes. Thanks for your help.
Sub ForwardToMe() Dim objMsg As Object, objMailItem As Outlook.MailItem, objForward As _ Outlook.MailItem Set objMsg = Application.ActiveExplorer.Selection.Item(1) If objMsg Is Nothing Then Exit Sub If objMsg.Class <> olMail Then Exit Sub Set objMailItem = objMsg Set objForward = objMailItem.Forward objForward.To = "email address" |
#2
|
|||
|
|||
Please review the link below on changing the From field on your messages within Outlook.
http://www.emailaddressmanager.com/o.../reply-to.html Hope this helps. Mophead |
#3
|
|||
|
|||
Changing the From Field
I went to the link you provided and it talks about Reply To. My issue was changing the From Field before forwarding and/or replying so I don't see this being a solution for me. I've come across a solution using SendKeys which backs up the cursor into the From field and then plops in my name which seems to be working most of the time (some times it puts my name in but Outlook won't make reference to the address book to put in the proper format), but for the most part it does and I guess I'll have to live with that until I can find a better solution. I know I've read where SendKeys can be unreliable and I guess when it does this, this is a perfect example of its unreliability or unpredictability. Oh well!
|
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to refer a field in another field | DaveSmith | Word | 0 | 08-24-2010 06:44 PM |
Changing Word doc to .txt | cialili | Word | 1 | 08-02-2010 12:38 PM |
changing font size without changing leading | carolns | Word | 1 | 09-14-2009 12:30 PM |
Changing DataSource | ntfirewall | Mail Merge | 0 | 03-30-2007 06:01 AM |
IRR with Changing Signs | aml480 | Excel | 0 | 03-16-2006 11:27 PM |