Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
re-calc
i need to do a recalculation any time the cursor moves up or down on a
speadsheet - can anyone help? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
re-calc
Hi John,
You should create a event on the worksheet: Option Explicit Private lngLastRow As Long Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Cells.Count = 1 Then If Target.Row < lngLastRow Then Calculate lngLastRow = Target.Row End If End If End Sub Hoop this helps, Executor. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
re-calc
thanks very much - it works perfectly!
"Executor" wrote: Hi John, You should create a event on the worksheet: Option Explicit Private lngLastRow As Long Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Cells.Count = 1 Then If Target.Row < lngLastRow Then Calculate lngLastRow = Target.Row End If End If End Sub Hoop this helps, Executor. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Calc = Manual & Do Not Calc b/4 SAVE | Excel Discussion (Misc queries) | |||
calc | Excel Worksheet Functions | |||
My calc key on Excel changes box to "Text" Box and doesn't calc ? | Charts and Charting in Excel | |||
auto calc on, but have to edit (f2) cells to force re-calc..help! | Excel Worksheet Functions | |||
Re-Calc | Excel Programming |