LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Automatic Email Rota from Excel (2007)

I have written a couple of VB subs that compose and send an email reminder
from an excel application consisting of three sheets.

Sheet one is a table which contains the a column of dates next to the name
of a person who needs to carry out a duty during the week following that day.

Sheet two contains a table with the peoples names and there email addresses
(only those with emails {there are still a few who do not use computers!} are
on the list).

Sheet three calculate from todays date which person is due to do the job
from Saturday week and gets their email address or uses mine if they do not
have one.

I have written the following macro which runs automatically on opening the
spreadsheet and I hope will work with a scheduled task which runs the
application

Option Explicit 'Out of habit!

Sub Auto_Open()
'Stop 'useful for debugging.
Application.CalculateFull
Module1.Email_Turn 'composes and send the email
Application.DisplayAlerts 'prevent Save yes/no prompt
Application.Quit
End Sub

But is this the best approach? it certainly makes using the spreadsheet a
pain as you have to remember to press Ctrl Shift when opening it to stop it
running.

Can I perhaps use some vb (I have express 2008) to invoke the application
and call a (non Auto_Open) macro instead? Can I detect whether the app has
been started by the schedular or any other suggestions. I'm getting beyond my
knowledge of how all this knits together!
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Automatic Email Alerts Beni Excel Discussion (Misc queries) 2 May 29th 09 06:42 PM
Automatic email from excel Steve Excel Discussion (Misc queries) 2 May 6th 08 05:32 AM
Automatic email from Outlook of excel spreadsheet JohnEFC Excel Discussion (Misc queries) 5 January 31st 08 01:03 PM
How to send automatic email when cell value changes in excel karlos Excel Worksheet Functions 1 October 5th 07 03:42 PM
Automatic email by Excel Macro Anift Setting up and Configuration of Excel 2 November 11th 06 04:33 AM


All times are GMT +1. The time now is 10:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"