![]() |
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 |
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 |
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 |
All times are GMT +1. The time now is 04:20 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com