Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
lRW was just a Variable of type long to hold the value of the row in which
the function resides - since that was your question. the sum will pass in the value of all the cells in the specified range, without consideration of whether they are visible or not. When you use your addvisible function with the range of cells to consider, excel will use changes in those cells to determine when to run you addvisible function to recalculate the sum. What won't trigger it is unhiding a column, but there isn't a work around for that since that doesn't trigger a calculate. -- Regards, Tom Ogilvy "Masa Ito" wrote in message 48.16... Thanks for the reply Tom. The reason I had the Sum function within the call was so that it would automatically update when one of the values changed within the range being added. Is there a proper way to accomplish this? Also, I searched and could not find what lRW is referring to. I am sure it will be something stupid that I should be able to think of, but if you don't mind explaining... Thanks. M.I. "Tom Ogilvy" wrote in news:uB39iC0pEHA.1160 @tk2msftngp13.phx.gbl: You shouldn't have a Sum function within your call to AddVisible. The addvisible function should do the summing. Function AddVisible(iTotal) Dim rng as Range set rng = Application.Caller lRW = rng.row . . . End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I know which cell a function is called from? | Excel Worksheet Functions | |||
What is this function called?? | Excel Discussion (Misc queries) | |||
Function, dont know what its called | Excel Worksheet Functions | |||
Possible to know who has called a function ? | Excel Programming | |||
Determining whether function called by Excel or VBA | Excel Programming |