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

Help with mail forward to different users (round robin)



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 2nd 06, 02:29 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 4
Default Help with mail forward to different users (round robin)

I have a difficult problem to solve, hopefully someone here can point
me in the right direction. I am pretty familiar with VBA in Access and
used to use VB script, but don't know where to start.

I want to be able to automatically respond to a lead when it comes in
to a sales inbox. I think I can set up a rule to do that, and also use
a rule to do that during normal business hours?

The other thing I need to do is forward that lead to the first
salesperson on a distribution list, or Access Table, the next lead to
the second salesperson, the third lead to the third salesperson etc.
until the end of the distribution list, then start over. I will also
need to modify the distribution list to suit each salesperson's day
off. Somewhere around 100 - 150 leads needs to be handled in that
manner.

Is there a way to loop through a list and accomplish what I'm
describing?

Thank you in advance for your help!

Bob

Ads
  #2  
Old November 3rd 06, 06:18 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Help with mail forward to different users (round robin)

A rule can respond messages but for an action just during the business hours
youŽd have to code that yourself.

The round robin is easy with an Access table: Add a column to the table, a
value of 1 indicates that the mail is sent. If all entries are set to 1,
reset them all to 0 and start again. Another column (or linked table) could
tell you the personŽs day off(s). If such a person would be the current one
to send the mail to then set the flag=1 and start the procedure again to
select the next person.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --

Am 2 Nov 2006 06:29:34 -0800 schrieb :

I have a difficult problem to solve, hopefully someone here can point
me in the right direction. I am pretty familiar with VBA in Access and
used to use VB script, but don't know where to start.

I want to be able to automatically respond to a lead when it comes in
to a sales inbox. I think I can set up a rule to do that, and also use
a rule to do that during normal business hours?

The other thing I need to do is forward that lead to the first
salesperson on a distribution list, or Access Table, the next lead to
the second salesperson, the third lead to the third salesperson etc.
until the end of the distribution list, then start over. I will also
need to modify the distribution list to suit each salesperson's day
off. Somewhere around 100 - 150 leads needs to be handled in that
manner.

Is there a way to loop through a list and accomplish what I'm
describing?

Thank you in advance for your help!

Bob

  #3  
Old November 3rd 06, 12:19 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 4
Default Help with mail forward to different users (round robin)

Thanks for your response!

Could I write code in Outlook that would work with a rule? Ideally, I
would like the round robin to execute automatically when a lead arrives
in the inbox. The application is using Outlook pop mail.

Michael Bauer [MVP - Outlook] wrote:
A rule can respond messages but for an action just during the business hours
youŽd have to code that yourself.

The round robin is easy with an Access table: Add a column to the table, a
value of 1 indicates that the mail is sent. If all entries are set to 1,
reset them all to 0 and start again. Another column (or linked table) could
tell you the personŽs day off(s). If such a person would be the current one
to send the mail to then set the flag=1 and start the procedure again to
select the next person.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --

Am 2 Nov 2006 06:29:34 -0800 schrieb :

I have a difficult problem to solve, hopefully someone here can point
me in the right direction. I am pretty familiar with VBA in Access and
used to use VB script, but don't know where to start.

I want to be able to automatically respond to a lead when it comes in
to a sales inbox. I think I can set up a rule to do that, and also use
a rule to do that during normal business hours?

The other thing I need to do is forward that lead to the first
salesperson on a distribution list, or Access Table, the next lead to
the second salesperson, the third lead to the third salesperson etc.
until the end of the distribution list, then start over. I will also
need to modify the distribution list to suit each salesperson's day
off. Somewhere around 100 - 150 leads needs to be handled in that
manner.

Is there a way to loop through a list and accomplish what I'm
describing?

Thank you in advance for your help!

Bob


  #4  
Old November 4th 06, 06:29 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Help with mail forward to different users (round robin)

Yes, from OL 2002 on you can create a run-a-script-rule. For that the script
must be declared like this:

Public MyScript(Mail as Outlook.MailItem)
...
End Sub

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


Am 3 Nov 2006 04:19:56 -0800 schrieb :

Thanks for your response!

Could I write code in Outlook that would work with a rule? Ideally, I
would like the round robin to execute automatically when a lead arrives
in the inbox. The application is using Outlook pop mail.

Michael Bauer [MVP - Outlook] wrote:
A rule can respond messages but for an action just during the business

hours
youŽd have to code that yourself.

The round robin is easy with an Access table: Add a column to the table,

a
value of 1 indicates that the mail is sent. If all entries are set to 1,
reset them all to 0 and start again. Another column (or linked table)

could
tell you the personŽs day off(s). If such a person would be the current

one
to send the mail to then set the flag=1 and start the procedure again to
select the next person.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
--
www.VBOffice.net --

Am 2 Nov 2006 06:29:34 -0800 schrieb :

I have a difficult problem to solve, hopefully someone here can point
me in the right direction. I am pretty familiar with VBA in Access and
used to use VB script, but don't know where to start.

I want to be able to automatically respond to a lead when it comes in
to a sales inbox. I think I can set up a rule to do that, and also use
a rule to do that during normal business hours?

The other thing I need to do is forward that lead to the first
salesperson on a distribution list, or Access Table, the next lead to
the second salesperson, the third lead to the third salesperson etc.
until the end of the distribution list, then start over. I will also
need to modify the distribution list to suit each salesperson's day
off. Somewhere around 100 - 150 leads needs to be handled in that
manner.

Is there a way to loop through a list and accomplish what I'm
describing?

Thank you in advance for your help!

Bob

  #5  
Old November 5th 06, 01:25 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 4
Default Help with mail forward to different users (round robin)

Michael,

Thanks for your help!

Hopefully I can try and test this coming week.

Bob

Michael Bauer [MVP - Outlook] wrote:
Yes, from OL 2002 on you can create a run-a-script-rule. For that the script
must be declared like this:

Public MyScript(Mail as Outlook.MailItem)
..
End Sub

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


Am 3 Nov 2006 04:19:56 -0800 schrieb :

Thanks for your response!

Could I write code in Outlook that would work with a rule? Ideally, I
would like the round robin to execute automatically when a lead arrives
in the inbox. The application is using Outlook pop mail.

Michael Bauer [MVP - Outlook] wrote:
A rule can respond messages but for an action just during the business

hours
youŽd have to code that yourself.

The round robin is easy with an Access table: Add a column to the table,

a
value of 1 indicates that the mail is sent. If all entries are set to 1,
reset them all to 0 and start again. Another column (or linked table)

could
tell you the personŽs day off(s). If such a person would be the current

one
to send the mail to then set the flag=1 and start the procedure again to
select the next person.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
--
www.VBOffice.net --

Am 2 Nov 2006 06:29:34 -0800 schrieb :

I have a difficult problem to solve, hopefully someone here can point
me in the right direction. I am pretty familiar with VBA in Access and
used to use VB script, but don't know where to start.

I want to be able to automatically respond to a lead when it comes in
to a sales inbox. I think I can set up a rule to do that, and also use
a rule to do that during normal business hours?

The other thing I need to do is forward that lead to the first
salesperson on a distribution list, or Access Table, the next lead to
the second salesperson, the third lead to the third salesperson etc.
until the end of the distribution list, then start over. I will also
need to modify the distribution list to suit each salesperson's day
off. Somewhere around 100 - 150 leads needs to be handled in that
manner.

Is there a way to loop through a list and accomplish what I'm
describing?

Thank you in advance for your help!

Bob


  #6  
Old December 5th 06, 11:44 AM posted to microsoft.public.outlook.program_vba
Bob
external usenet poster
 
Posts: 10
Default Help with mail forward to different users (round robin)

Michael,

Thanks again for your help!
I've got the rule working, and now I'm back to the Round Robin part of
my application. Do you have any suggestions as to how I can reset the
1 value to 0 after all of the entries to the table have been set and
start over?

Bob


wrote:
Michael,

Thanks for your help!



Hopefully I can try and test this coming week.

Bob

Michael Bauer [MVP - Outlook] wrote:
Yes, from OL 2002 on you can create a run-a-script-rule. For that the script
must be declared like this:

Public MyScript(Mail as Outlook.MailItem)
..
End Sub

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
--
www.VBOffice.net --


Am 3 Nov 2006 04:19:56 -0800 schrieb :

Thanks for your response!

Could I write code in Outlook that would work with a rule? Ideally, I
would like the round robin to execute automatically when a lead arrives
in the inbox. The application is using Outlook pop mail.

Michael Bauer [MVP - Outlook] wrote:
A rule can respond messages but for an action just during the business

hours
youŽd have to code that yourself.

The round robin is easy with an Access table: Add a column to the table,

a
value of 1 indicates that the mail is sent. If all entries are set to 1,
reset them all to 0 and start again. Another column (or linked table)

could
tell you the personŽs day off(s). If such a person would be the current

one
to send the mail to then set the flag=1 and start the procedure again to
select the next person.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
--
www.VBOffice.net --

Am 2 Nov 2006 06:29:34 -0800 schrieb :

I have a difficult problem to solve, hopefully someone here can point
me in the right direction. I am pretty familiar with VBA in Access and
used to use VB script, but don't know where to start.

I want to be able to automatically respond to a lead when it comes in
to a sales inbox. I think I can set up a rule to do that, and also use
a rule to do that during normal business hours?

The other thing I need to do is forward that lead to the first
salesperson on a distribution list, or Access Table, the next lead to
the second salesperson, the third lead to the third salesperson etc.
until the end of the distribution list, then start over. I will also
need to modify the distribution list to suit each salesperson's day
off. Somewhere around 100 - 150 leads needs to be handled in that
manner.

Is there a way to loop through a list and accomplish what I'm
describing?

Thank you in advance for your help!

Bob


  #7  
Old December 6th 06, 06:24 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Help with mail forward to different users (round robin)



If it's the database talks sql, it could look like this:

update [table] set [field]=0 where [field]=1

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --

Am 5 Dec 2006 03:44:48 -0800 schrieb Bob:

Michael,

Thanks again for your help!
I've got the rule working, and now I'm back to the Round Robin part of
my application. Do you have any suggestions as to how I can reset the
1 value to 0 after all of the entries to the table have been set and
start over?

Bob


wrote:
Michael,

Thanks for your help!



Hopefully I can try and test this coming week.

Bob

Michael Bauer [MVP - Outlook] wrote:
Yes, from OL 2002 on you can create a run-a-script-rule. For that the

script
must be declared like this:

Public MyScript(Mail as Outlook.MailItem)
..
End Sub

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
--
www.VBOffice.net --


Am 3 Nov 2006 04:19:56 -0800 schrieb :

Thanks for your response!

Could I write code in Outlook that would work with a rule? Ideally, I
would like the round robin to execute automatically when a lead

arrives
in the inbox. The application is using Outlook pop mail.

Michael Bauer [MVP - Outlook] wrote:
A rule can respond messages but for an action just during the

business
hours
youŽd have to code that yourself.

The round robin is easy with an Access table: Add a column to the

table,
a
value of 1 indicates that the mail is sent. If all entries are set to

1,
reset them all to 0 and start again. Another column (or linked table)
could
tell you the personŽs day off(s). If such a person would be the

current
one
to send the mail to then set the flag=1 and start the procedure again

to
select the next person.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
--
www.VBOffice.net --

Am 2 Nov 2006 06:29:34 -0800 schrieb :

I have a difficult problem to solve, hopefully someone here can

point
me in the right direction. I am pretty familiar with VBA in Access

and
used to use VB script, but don't know where to start.

I want to be able to automatically respond to a lead when it comes

in
to a sales inbox. I think I can set up a rule to do that, and also

use
a rule to do that during normal business hours?

The other thing I need to do is forward that lead to the first
salesperson on a distribution list, or Access Table, the next lead

to
the second salesperson, the third lead to the third salesperson etc.
until the end of the distribution list, then start over. I will

also
need to modify the distribution list to suit each salesperson's day
off. Somewhere around 100 - 150 leads needs to be handled in that
manner.

Is there a way to loop through a list and accomplish what I'm
describing?

Thank you in advance for your help!

Bob

 




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
Can't Forward Pictures in e-mail ? Bubey Outlook Express 1 July 28th 06 07:54 PM
RPC-HTTP - DNS Round Robin Massimo Artini Outlook - Installation 1 July 2nd 06 06:16 PM
Rule to Forward Incoming Mail Fails when item is itself a replied-to or forwarded e-mail Steven Bookman Outlook - General Queries 3 April 6th 06 09:41 PM
Forward e-mail as an attachment dthmtlgod Outlook and VBA 1 January 25th 06 04:38 PM
Forward e-mail from Outlook Maxim Kazitov Outlook - General Queries 3 January 13th 06 01:37 PM


All times are GMT +1. The time now is 09:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.