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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Macro for New mail with SoB



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 15th 11, 09:32 AM
Ciryadin Ciryadin is offline
Junior Member
 
First recorded activity at Outlookbanter: Jun 2011
Posts: 3
Default Macro for New mail with SoB

Macro for New mail with SoB
I already have something that's semi working, if i already open a new e-mail and use this macro in Outlook 2003. It'll categorize the mail under receptie (reception) and populate the From (SendOnBehalf) field with but ONLY if the from field is hidden (not tagged in View). If the "From" view field is already tagged it will not populate this field.

What i'm basically trying to accomplish for our dear reception ladies is 1 does all button.

- Open a new mail
- Populate the 'from' field with a given e-mail adress
- Set the category field to 'reception' ( this already works)

Below is what i got sofar, but i could use some pointers to finish it off (i'm not a coding expert)

============

Sub Reception()

Dim myOlApp As New Outlook.Application
Dim myItem As Object

Set myItem = myOlApp.ActiveInspector.CurrentItem
myItem.Categories = "xxxxx"

Application.ActiveInspector.CurrentItem.SentOnBeha lfOfName = "xxxxx"

End Sub

============

Last edited by Ciryadin : July 27th 11 at 12:20 PM.
Ads
  #2  
Old July 27th 11, 12:20 PM
Ciryadin Ciryadin is offline
Junior Member
 
First recorded activity at Outlookbanter: Jun 2011
Posts: 3
Default

friendly bump
 




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
macro to forward mail mugo Outlook and VBA 1 October 26th 07 01:13 PM
Macro to download the mail mrbalaje Outlook and VBA 0 June 2nd 07 03:15 PM
macro's in Outlook (e-mail) Ben Outlook and VBA 5 March 5th 07 11:24 AM
How to write a program/macro to send a mail to a groups of e-mail Adi Outlook and VBA 8 December 4th 06 07:20 AM
Macro within a Mail Message Tia Outlook and VBA 1 February 7th 06 03:47 PM


All times are GMT +1. The time now is 05:12 PM.


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.