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

Insert subject on new message



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 15th 07, 12:22 AM posted to microsoft.public.outlook.program_vba
Steve
external usenet poster
 
Posts: 20
Default Insert subject on new message

Hello

My company introduced a new mandatory security rating to be inserted into
the subject of all emails. Is there a way to give users a drop-list to
select the appropriate rating whenever a new message is created?

Versions - 2000 and 2003 (soon to be upgraded).

Steve


Ads
  #2  
Old March 15th 07, 07:00 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Insert subject on new message



You can create a UserForm with a combobox on it. Track the NewInspector
event and then the new inspector's Activate event. In that show the
UserForm.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
The most effective way to assign Outlook categories:
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am Thu, 15 Mar 2007 10:22:27 +1100 schrieb Steve:

Hello

My company introduced a new mandatory security rating to be inserted into
the subject of all emails. Is there a way to give users a drop-list to
select the appropriate rating whenever a new message is created?

Versions - 2000 and 2003 (soon to be upgraded).

Steve

  #3  
Old March 15th 07, 08:15 AM posted to microsoft.public.outlook.program_vba
Steve
external usenet poster
 
Posts: 20
Default Insert subject on new message

I've written VBA in Access, Excel and Word but never touched Outlook.
NewInspector is a new term to me. Can someone direct me where I can research
how to use this to handle what I need in a new message.

"Michael Bauer [MVP - Outlook]" wrote in message
. ..


You can create a UserForm with a combobox on it. Track the NewInspector
event and then the new inspector's Activate event. In that show the
UserForm.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
The most effective way to assign Outlook categories:
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am Thu, 15 Mar 2007 10:22:27 +1100 schrieb Steve:

Hello

My company introduced a new mandatory security rating to be inserted into
the subject of all emails. Is there a way to give users a drop-list to
select the appropriate rating whenever a new message is created?

Versions - 2000 and 2003 (soon to be upgraded).

Steve



  #4  
Old March 20th 07, 07:51 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Insert subject on new message



This is how to handle the events:

Private WithEvents m_Inspectors As Outlook.Inspectors
Private WithEvents m_Inspector As Outlook.Inspector

Private Sub Application_Startup()
Set m_Inspectors = Application.Inspectors
End Sub

Private Sub m_Inspectors_NewInspector(ByVal Inspector As Outlook.Inspector)
Set m_Inspector = Inspector
End Sub

Private Sub m_Inspector_Activate()
' ...
End Sub


--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - The most effective way to assign Outlook categories:
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am Thu, 15 Mar 2007 18:15:13 +1100 schrieb Steve:

I've written VBA in Access, Excel and Word but never touched Outlook.
NewInspector is a new term to me. Can someone direct me where I can

research
how to use this to handle what I need in a new message.

"Michael Bauer [MVP - Outlook]" wrote in message
. ..


You can create a UserForm with a combobox on it. Track the NewInspector
event and then the new inspector's Activate event. In that show the
UserForm.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
The most effective way to assign Outlook categories:
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am Thu, 15 Mar 2007 10:22:27 +1100 schrieb Steve:

Hello

My company introduced a new mandatory security rating to be inserted

into
the subject of all emails. Is there a way to give users a drop-list to
select the appropriate rating whenever a new message is created?

Versions - 2000 and 2003 (soon to be upgraded).

Steve

  #5  
Old March 20th 07, 10:11 PM posted to microsoft.public.outlook.program_vba
Steve
external usenet poster
 
Posts: 20
Default Insert subject on new message

Thank you. This is something I couldn't find direction on in my search of
the web. My company won't shell out for a book on programming Outlook to
ease a couple of tasks.

VBA in Outlook still looks very foreign, despite my experience in other MS
products. Vastly different from swtiches between Access, Excel and Word. I
have a strong feeling a lot of research is required to solve my problem but,
if I can work with values chosen in forms in Excel, surely the general
principals can't be that different.



"Michael Bauer [MVP - Outlook]" wrote in message
...


This is how to handle the events:

Private WithEvents m_Inspectors As Outlook.Inspectors
Private WithEvents m_Inspector As Outlook.Inspector

Private Sub Application_Startup()
Set m_Inspectors = Application.Inspectors
End Sub

Private Sub m_Inspectors_NewInspector(ByVal Inspector As
Outlook.Inspector)
Set m_Inspector = Inspector
End Sub

Private Sub m_Inspector_Activate()
' ...
End Sub


--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - The most effective way to assign Outlook categories:
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am Thu, 15 Mar 2007 18:15:13 +1100 schrieb Steve:

I've written VBA in Access, Excel and Word but never touched Outlook.
NewInspector is a new term to me. Can someone direct me where I can

research
how to use this to handle what I need in a new message.

"Michael Bauer [MVP - Outlook]" wrote in message
. ..


You can create a UserForm with a combobox on it. Track the NewInspector
event and then the new inspector's Activate event. In that show the
UserForm.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
The most effective way to assign Outlook categories:
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am Thu, 15 Mar 2007 10:22:27 +1100 schrieb Steve:

Hello

My company introduced a new mandatory security rating to be inserted

into
the subject of all emails. Is there a way to give users a drop-list to
select the appropriate rating whenever a new message is created?

Versions - 2000 and 2003 (soon to be upgraded).

Steve



  #6  
Old March 21st 07, 06:58 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Insert subject on new message



The main difference is, Excel and Word are file related. In Outlook there're
Stores and Folders, Explorers for the folder view and Inspectors for open
items.

You can learn a lot by using the object browser (f2), which shows the object
model, the objects' properties, procedures and events. Except for constants,
you can select each item and press f1 for help, which often comes with VBA
samples, too.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - The most effective way to assign Outlook categories:
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am Wed, 21 Mar 2007 08:11:29 +1100 schrieb Steve:

Thank you. This is something I couldn't find direction on in my search of
the web. My company won't shell out for a book on programming Outlook to
ease a couple of tasks.

VBA in Outlook still looks very foreign, despite my experience in other MS
products. Vastly different from swtiches between Access, Excel and Word. I
have a strong feeling a lot of research is required to solve my problem

but,
if I can work with values chosen in forms in Excel, surely the general
principals can't be that different.



"Michael Bauer [MVP - Outlook]" wrote in message
...


This is how to handle the events:

Private WithEvents m_Inspectors As Outlook.Inspectors
Private WithEvents m_Inspector As Outlook.Inspector

Private Sub Application_Startup()
Set m_Inspectors = Application.Inspectors
End Sub

Private Sub m_Inspectors_NewInspector(ByVal Inspector As
Outlook.Inspector)
Set m_Inspector = Inspector
End Sub

Private Sub m_Inspector_Activate()
' ...
End Sub


--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - The most effective way to assign Outlook categories:
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am Thu, 15 Mar 2007 18:15:13 +1100 schrieb Steve:

I've written VBA in Access, Excel and Word but never touched Outlook.
NewInspector is a new term to me. Can someone direct me where I can

research
how to use this to handle what I need in a new message.

"Michael Bauer [MVP - Outlook]" wrote in message
. ..


You can create a UserForm with a combobox on it. Track the NewInspector
event and then the new inspector's Activate event. In that show the
UserForm.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
The most effective way to assign Outlook categories:
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am Thu, 15 Mar 2007 10:22:27 +1100 schrieb Steve:

Hello

My company introduced a new mandatory security rating to be inserted

into
the subject of all emails. Is there a way to give users a drop-list to
select the appropriate rating whenever a new message is created?

Versions - 2000 and 2003 (soon to be upgraded).

Steve

  #7  
Old March 22nd 07, 09:38 AM posted to microsoft.public.outlook.program_vba
Steve
external usenet poster
 
Posts: 20
Default Insert subject on new message

Thank you for the tips. I've been specialising in Excel for about four years
after breaking away from many years of Access programming but it might be
time to see what can be done to make Outlook work for us instead of being
"the email program".
Steve

"Michael Bauer [MVP - Outlook]" wrote in message
...


The main difference is, Excel and Word are file related. In Outlook
there're
Stores and Folders, Explorers for the folder view and Inspectors for open
items.

You can learn a lot by using the object browser (f2), which shows the
object
model, the objects' properties, procedures and events. Except for
constants,
you can select each item and press f1 for help, which often comes with VBA
samples, too.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - The most effective way to assign Outlook categories:
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am Wed, 21 Mar 2007 08:11:29 +1100 schrieb Steve:

Thank you. This is something I couldn't find direction on in my search
of
the web. My company won't shell out for a book on programming Outlook to
ease a couple of tasks.

VBA in Outlook still looks very foreign, despite my experience in other
MS
products. Vastly different from swtiches between Access, Excel and Word.
I
have a strong feeling a lot of research is required to solve my problem

but,
if I can work with values chosen in forms in Excel, surely the general
principals can't be that different.



"Michael Bauer [MVP - Outlook]" wrote in message
...


This is how to handle the events:

Private WithEvents m_Inspectors As Outlook.Inspectors
Private WithEvents m_Inspector As Outlook.Inspector

Private Sub Application_Startup()
Set m_Inspectors = Application.Inspectors
End Sub

Private Sub m_Inspectors_NewInspector(ByVal Inspector As
Outlook.Inspector)
Set m_Inspector = Inspector
End Sub

Private Sub m_Inspector_Activate()
' ...
End Sub


--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - The most effective way to assign Outlook categories:
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am Thu, 15 Mar 2007 18:15:13 +1100 schrieb Steve:

I've written VBA in Access, Excel and Word but never touched Outlook.
NewInspector is a new term to me. Can someone direct me where I can
research
how to use this to handle what I need in a new message.

"Michael Bauer [MVP - Outlook]" wrote in message
. ..


You can create a UserForm with a combobox on it. Track the
NewInspector
event and then the new inspector's Activate event. In that show the
UserForm.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
The most effective way to assign Outlook categories:
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am Thu, 15 Mar 2007 10:22:27 +1100 schrieb Steve:

Hello

My company introduced a new mandatory security rating to be inserted
into
the subject of all emails. Is there a way to give users a drop-list
to
select the appropriate rating whenever a new message is created?

Versions - 2000 and 2003 (soon to be upgraded).

Steve



 




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
How to insert an email adress into a new message dadopodsem Outlook and VBA 11 March 5th 07 07:45 AM
ActiveX Message on Signature Insert Jane Outlook - Installation 1 January 31st 07 06:34 PM
Automatically insert the name of the sender in a reply message [email protected] Outlook - General Queries 0 November 28th 06 05:53 PM
outlook new message has no subject LSA1019 Outlook - General Queries 2 October 20th 06 06:50 PM
OL2003: Message List shows Message Size rather than Subject David Lipetz Outlook - General Queries 2 August 10th 06 11:29 PM


All times are GMT +1. The time now is 01:10 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.