ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Running a macro based on the time (https://www.excelbanter.com/excel-discussion-misc-queries/259587-running-macro-based-time.html)

WNYC

Running a macro based on the time
 
I have a spreadsheet that runs throughout the day. There is a time function
built in using =now() and Text(A1,"H:MM"). Is there a way to use the time to
run a macro? I want the macro to run everyday at 16:00.

Thanks.

FSt1

Running a macro based on the time
 
hi
that would be the on time event.
look up the on time method in vb help.
also see this site.
http://www.cpearson.com/excel/OnTime.aspx

regards
FSt1

"WNYC" wrote:

I have a spreadsheet that runs throughout the day. There is a time function
built in using =now() and Text(A1,"H:MM"). Is there a way to use the time to
run a macro? I want the macro to run everyday at 16:00.

Thanks.



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com