Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Why does this code not get updated

I have got a code which needs to be updated across 19 services for each
of the three different sites. But the code gets intrrupted as soon as
it finishes when i-1 and j=1 and then we need to click to resume button
to go to 1=1, j=2. Can anyone tell me what needs to be done to update
it for all the three sites and the 19 services as well.


Sub UPDATING()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
stepsize = 100
For i = 1 To 4
For j = 1 To 19
PasteRes = "ResultsPaste" & i
Range("HospitalInUSe") = i
Range("ServiceInUse") = j
If Range("TOTALCOSTS") 1 Then
Range("TargetCell1").GoalSeek Goal:=Range("TargetValue1"),
ChangingCell:=Range("ChangeCell1")
Else
Range("ChangeCell1") = 0
End If
If Range("Reducer") = "no" And Range("ChangeCell1") < 0 Then
Range("ChangeCell") = 0
Calculate
Range("CalcResults").Copy
Range(PasteRes).Offset(stepsize * j, 0).PasteSpecial
xlPasteValues
Range(PasteRes).Offset(stepsize * j, 0).PasteSpecial
xlPasteFormats
Next j
Next i
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub

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
Excel cells randomly don't get updated unless each cell is updated Lost in Excel Excel Discussion (Misc queries) 5 September 29th 08 06:56 PM
updated row comes at the top Fam via OfficeKB.com Excel Discussion (Misc queries) 2 April 11th 06 05:20 AM
Link cannot be updated LarryP Setting up and Configuration of Excel 1 December 6th 05 10:55 PM
Updated Cells David French Excel Programming 1 October 28th 05 05:37 PM
Updated problem alexm999[_72_] Excel Programming 3 May 18th 04 05:02 PM


All times are GMT +1. The time now is 06:07 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"