#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default re-calc

i need to do a recalculation any time the cursor moves up or down on a
speadsheet - can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calc = Manual & Do Not Calc b/4 SAVE Ken Excel Discussion (Misc queries) 0 October 3rd 07 02:28 PM
calc PH NEWS Excel Worksheet Functions 6 September 22nd 06 03:01 PM
My calc key on Excel changes box to "Text" Box and doesn't calc ? jack Charts and Charting in Excel 0 August 8th 06 07:30 PM
auto calc on, but have to edit (f2) cells to force re-calc..help! Curt Excel Worksheet Functions 3 February 13th 06 06:05 PM
Re-Calc Jerry[_16_] Excel Programming 3 January 15th 04 11:08 PM


All times are GMT +1. The time now is 05:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"