Automatic Insert

  • Thread starter Thread starter Thanassis Gaitatzis
  • Start date Start date
T

Thanassis Gaitatzis

Hi,

we are running outlook2000 or XP with SP3.
I generate a local distribution-group in my outlook and inserted the users I
want. Now I want after selecting this group that in the fields "CC" are
inserted Users automatically and in "Subject" is inserted some Data
automatically. I posted this in an german outlook group, but they told me to
post it here. Hope someone can help me with this issue!
Thanks and regards
Thanassis
 
Sue said:
What do you mean by "selecting this group"?

I mean the selection-window pops up when I push the button "To". Then I can
select a user or a group. Sorry, my english isnt`t really good, but I hope
you understand now what I mean :-)

Regards
Thanassis
 
So you're selecting from the address book. I'm still not clear about what
the ultimate goal is, though. Rather than describing the steps you think
should take place, maybe you could sketch out the business function you're
trying to fulfill.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Hi,
ok, I try onesmore.

Outlook is open. I push the "New" Button for new Mail. A Window pop up. I
have now three fields for inserting my data. Fields are: "To"; "Cc";
"Subject". In the field "To" I can select a contact like a single recipient
or a group recipient wich I have defined in my lokal Adress-Book (for my
description I named the group "Test").
So far so good.
What I want is the following:
In the moment I select the group "Test" in the field "To", the fields "Cc"
and "Subject" must filled up automatically with Data I have defined before
for this group, because the "Cc" reciepient(s), and the subject is every
time the same. I do not want to fill up the fields per hand when I select
the group "Test".
That is the ultimate goal. Is there a resolution? I´m not a programmer or
developer, but with a description for a resolution I think I can do it by
myself.
Thanks for your tips!
Thanassis
 
I was actually looking for more information on why you want to construct a
message that has Test and a certain subject in it, whether there are other
DLs you want to handle in a similar fashion, etc. Depending on what the
actual goal is, you might be better off coding a new message that uses the
Cc and Subject that you describe picking manuallly.

The scenario you describe can be handled, with some difficulty, using the
Inspectors.NewInspector event to instantiate an object representing the new
message, then use the PropertyChange method to watch for changes in the To
property. The difficulty comes in the fact that PropertyChange will most
likely fire multiple times even though the user chooses only one address.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top