A Microsoft Office (Excel, Word) forum. OfficeFrustration

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 » OfficeFrustration forum » Microsoft Excel » Setting up and Configuration
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Automatically Run macro



 
 
Thread Tools Display Modes
  #1  
Old November 25th, 2006, 08:34 AM posted to microsoft.public.excel.setup
Anift
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  
Old November 25th, 2006, 11:54 AM posted to microsoft.public.excel.setup
Gary''s Student
external usenet poster
 
Posts: 7,584
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  
Old November 25th, 2006, 03:52 PM posted to microsoft.public.excel.setup
Bob Phillips
external usenet poster
 
Posts: 1,032
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?



 




Thread Tools
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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:13 PM.


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