Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
OnTime function
Hi all,
I'm trying to use the OnTime function...here's the little code application.onkey Now + TimeValue("00:00:01"), "mod1" now the code works, but here's what i would like to get: I want the module "mod1" to be run every second, but without it being stopped by the user who might be busy. Now here's the strange thing.. On my Pc with WinXp Pro, the user can work in a sheet and the module runs every second, no problem... But when I try this on a WinME system, and I type in cells (or whatever action I'm taking...) while the module should be running, it waits till I've finished writing in cells... Is this a setting,if so how to change this, or does someone else know a nice way to let a piece of code run in the background every 1 second? thanks in advance max |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
OnTime function
You sure it's working in your WinXP system.
Try a little test. Try editting a cell--but do it very slowly. I think you'll find that the macro is waiting for excel to become available in that version of windows, too. Max Potters wrote: Hi all, I'm trying to use the OnTime function...here's the little code application.onkey Now + TimeValue("00:00:01"), "mod1" now the code works, but here's what i would like to get: I want the module "mod1" to be run every second, but without it being stopped by the user who might be busy. Now here's the strange thing.. On my Pc with WinXp Pro, the user can work in a sheet and the module runs every second, no problem... But when I try this on a WinME system, and I type in cells (or whatever action I'm taking...) while the module should be running, it waits till I've finished writing in cells... Is this a setting,if so how to change this, or does someone else know a nice way to let a piece of code run in the background every 1 second? thanks in advance max -- Dave Peterson |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
OnTime function
You are right Dave, it doesnt work on both operating systems...
Do you know a way to still run macro's every second, but without any breaks caused by the user? thanks max "Max Potters" wrote in message ... Hi all, I'm trying to use the OnTime function...here's the little code application.onkey Now + TimeValue("00:00:01"), "mod1" now the code works, but here's what i would like to get: I want the module "mod1" to be run every second, but without it being stopped by the user who might be busy. Now here's the strange thing.. On my Pc with WinXp Pro, the user can work in a sheet and the module runs every second, no problem... But when I try this on a WinME system, and I type in cells (or whatever action I'm taking...) while the module should be running, it waits till I've finished writing in cells... Is this a setting,if so how to change this, or does someone else know a nice way to let a piece of code run in the background every 1 second? thanks in advance max |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
OnTime function
Nope. If the user is typing in a cell, useful macros won't run.
(I've seen someone (I forget who) post a macro that did something while the user was typing in the formulabar, but it wasn't useful--more of a scholastic exercise.) Max Potters wrote: You are right Dave, it doesnt work on both operating systems... Do you know a way to still run macro's every second, but without any breaks caused by the user? thanks max "Max Potters" wrote in message ... Hi all, I'm trying to use the OnTime function...here's the little code application.onkey Now + TimeValue("00:00:01"), "mod1" now the code works, but here's what i would like to get: I want the module "mod1" to be run every second, but without it being stopped by the user who might be busy. Now here's the strange thing.. On my Pc with WinXp Pro, the user can work in a sheet and the module runs every second, no problem... But when I try this on a WinME system, and I type in cells (or whatever action I'm taking...) while the module should be running, it waits till I've finished writing in cells... Is this a setting,if so how to change this, or does someone else know a nice way to let a piece of code run in the background every 1 second? thanks in advance max -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Find %ontime & SUMIF ontime ie: find matching sets within Range... | Excel Worksheet Functions | |||
OnTime bug? | Excel Discussion (Misc queries) | |||
OnTime VB | Excel Worksheet Functions | |||
OnTime...Please Help | Excel Programming | |||
need a function (not macro with ontime) to record a snapshot of a changing cell | Excel Programming |