Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
VBA Functions
Why doesn't this function refresh. The only time it refreshes is when I
activate the cell, press F2 and Enter. Function SheetIndex(rngSheet As Range) As Long SheetIndex = rngSheet.Parent.Index End Function |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
VBA Functions
Modify your code by adding this line as the top of the function:
Application.Volatile SheetIndex = rngSheet.Parent.Index -- Kevin Backmann "tplourde" wrote: Why doesn't this function refresh. The only time it refreshes is when I activate the cell, press F2 and Enter. Function SheetIndex(rngSheet As Range) As Long SheetIndex = rngSheet.Parent.Index End Function |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
VBA Functions
It seems to work if you add this line to the code...
Application.Volatile Ctrl + Alt + F9 also works. -- Jim Cone San Francisco, USA http://www.realezsites.com/bus/primitivesoftware "tplourde" wrote in message Why doesn't this function refresh. The only time it refreshes is when I activate the cell, press F2 and Enter. Function SheetIndex(rngSheet As Range) As Long SheetIndex = rngSheet.Parent.Index End Function |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
VBA Functions
Outstanding,
Thankyou "Kevin B" wrote: Modify your code by adding this line as the top of the function: Application.Volatile SheetIndex = rngSheet.Parent.Index -- Kevin Backmann "tplourde" wrote: Why doesn't this function refresh. The only time it refreshes is when I activate the cell, press F2 and Enter. Function SheetIndex(rngSheet As Range) As Long SheetIndex = rngSheet.Parent.Index End Function |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can I get Excel to determine the line curve formula without graph. | Excel Discussion (Misc queries) | |||
User-defined functions created in Excel 2000 fail in Excel 2003 | Excel Discussion (Misc queries) | |||
Database functions should use criteria in formula, as 1-2-3 does | Excel Worksheet Functions | |||
Visible rows and functions that work | Excel Worksheet Functions | |||
PASTE DOWN FUNCTIONS | Excel Worksheet Functions |