Keeping function calc within its own sheet
Posted by Mike W. on February 11, 2002 5:47 PM
OK - here's a simplified version of my prob:
3 sheets - in:
A1 = 6 on sheet1
A2 = 7 on sheet2
A3 = 8 on sheet3
on each sheet I call the function myTest()
Public Function myTest()
myTest = Cells(1, 1)
End Function
-or-
myTest = range("A1")
When I force the calculation, the function returns depend on which page I'm currently calc'ing. Example- I'm on sheet3, F9 it, and each page's function returns 8.
What am I missing? I figured each time a sheet called it's own function it would use it's own sheet's info...