Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-22-2010, 09:07 PM
jerem jerem is offline Changing the From field Windows XP Changing the From field Office 2003
Novice
Changing the From field
 
Join Date: Mar 2010
Posts: 6
jerem is on a distinguished road
Default 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"
Reply With Quote
  #2  
Old 10-28-2010, 10:03 AM
Mophead Mophead is offline Changing the From field Windows 7 Changing the From field Office 2010 (Version 14.0)
Advanced Beginner
 
Join Date: Jul 2010
Posts: 79
Mophead is on a distinguished road
Default

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
Reply With Quote
  #3  
Old 10-29-2010, 03:04 PM
jerem jerem is offline Changing the From field Windows XP Changing the From field Office 2003
Novice
Changing the From field
 
Join Date: Mar 2010
Posts: 6
jerem is on a distinguished road
Default 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!
Reply With Quote
Reply

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

Other Forums: Access Forums

All times are GMT -7. The time now is 10:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft