View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Robert Mulroney[_3_] Robert Mulroney[_3_] is offline
external usenet poster
 
Posts: 71
Default Worksheet Functions that Change Other Cells


There seems to be some kind of security that prevents a function called from
a worksheet changing other cells (on that sheet or anyother). Is there anyway
to get around that? I'm hopeing to update a range of cells when the sheet
calculates without using the "onCalcluate" event.

In fact I know that it's possible because I use a thrid party product that
does just this. How it does it is somewhat of a mistery to all of us.

To hopefully make myself clearer if I call this function:

Public Function timesTheyAreAChanging() As String
timesTheyAreAChanging = "Time"
Range("A3") = Now()
End Function

From a worksheet using:

"=timesTheyAreAChanging()"

then it returns an error result.

Yet if I comment-out the line that changes another cell then it works fine.
This is obviously a simple example what I want to do is much more complex but
the problem remains the same.


- Rm