#1   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 13
Default Automatically Run macro

Hi All,

I have a cell in my Sheet which shows the last updated date ( E11), Now i
have macro coded which sents email from Macro if the difference last updated
date and todays date is more than 2, I have a cell E12 where I enter todays
date and my Email macro gets activated, my email macro is working fine

Only problem is that I have to enter the date on that cell manually for the
macro to execute, if i use today() function, it does not activate the macro
automatically.

Is there any way i can automate the email sending process if the difference
between E11 and E12 is more than 2.

i want the email to be send automatically once the dates changes in E12 at
midnight, I do not have to enter the date manually in E12.
PS: today() function in E12 not working

Any help?
  #2   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 11,058
Default Automatically Run macro

=TODAY()

will not trip the Change event. Try the Activate event; you don't need to
use E12, just have the macro compare NOW with E11.

--
Gary's Student


"Anift" wrote:

Hi All,

I have a cell in my Sheet which shows the last updated date ( E11), Now i
have macro coded which sents email from Macro if the difference last updated
date and todays date is more than 2, I have a cell E12 where I enter todays
date and my Email macro gets activated, my email macro is working fine

Only problem is that I have to enter the date on that cell manually for the
macro to execute, if i use today() function, it does not activate the macro
automatically.

Is there any way i can automate the email sending process if the difference
between E11 and E12 is more than 2.

i want the email to be send automatically once the dates changes in E12 at
midnight, I do not have to enter the date manually in E12.
PS: today() function in E12 not working

Any help?

  #3   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 1,726
Default Automatically Run macro

Why not use Ontime to set a macro to run at midnight?

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Anift" wrote in message
...
Hi All,

I have a cell in my Sheet which shows the last updated date ( E11), Now i
have macro coded which sents email from Macro if the difference last

updated
date and todays date is more than 2, I have a cell E12 where I enter

todays
date and my Email macro gets activated, my email macro is working fine

Only problem is that I have to enter the date on that cell manually for

the
macro to execute, if i use today() function, it does not activate the

macro
automatically.

Is there any way i can automate the email sending process if the

difference
between E11 and E12 is more than 2.

i want the email to be send automatically once the dates changes in E12 at
midnight, I do not have to enter the date manually in E12.
PS: today() function in E12 not working

Any help?



Reply
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
how do I email amacro? leo Excel Worksheet Functions 24 August 9th 06 02:47 PM
How to stop Excel remembering/loading macro from previously opened Workbook Norman Yuan Excel Discussion (Misc queries) 4 June 17th 06 04:13 PM
Macro to tick checkbox automatically PaulJ Excel Discussion (Misc queries) 2 March 2nd 06 10:19 AM
How do I create a macro that will automatically input lines? cporter Setting up and Configuration of Excel 1 February 22nd 06 10:18 AM
enter data in cell then run macro automatically R D S Excel Discussion (Misc queries) 2 January 25th 05 10:19 PM


All times are GMT +1. The time now is 09:20 AM.

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

About Us

"It's about Microsoft Excel"