how do i make a visual basic function calculate every cycle?

G

Guest

how do i make a visual basic function calculate every cycle? I am
constructing a visual basic function in Excell that returns a result using
only clock input, that is NOT DEPENDENT upon cell data. Normal functions
calculate only when inputs change; There are no inputs; so it calculates once
and never again.
 
G

Guest

Are you using a function or a subroutine? The reason I'm asking is a
function can't write to the worksheet (only read). If you are using a
subroutine simply have the macro write to a cell in the worksheet. make sure
events arre enabled.
 
G

Guest

I am constructing a Public Function that will be activated within a cell
("=gTime()"). I want the cell to be re-Calculated on every screen update.
The function will return a value which is the specially computed elapsed time.
 
G

Guest

If not familar with what you are doing. Is it possible to run a sub with the
timer rather than a function? Have the sub everytime the timer expires to
write the time to the worksheet. Then everything will get recalulated.
 
T

Tim

=gTime(Now())

The "Now()" parameter will cause a recalculation every time the sheet is
recalculated (but not on every "screen update").

It's not too clear what you mean by "every cycle" - cycle of what ?

Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top