Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Column "D" is subtracted from "E" the previous total and simulaneously "F" is
added to the mix whenever columns "D,E or F is changed. Private Sub Worksheet_Change(ByVal Target As Range) Dim oTarget As Range Dim oIntersect As Range Set oTarget = Range("D1:F100") Set oIntersect = Application.Intersect(oTarget, Target) If Not oIntersect Is Nothing Then With Sheets("Sheet1") For n = 2 To 100 .Cells(n, 5) = .Cells((n - 1), 5) + .Cells(n, 6) - .Cells(n, 4) Next n End With End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Shared 2007 Workbook, 3MB, 15 users, locks up after 2-3 hours of u | Excel Discussion (Misc queries) | |||
Using Worksheet_change module in protected workbook. | Excel Programming | |||
Change cut/paste operation to cut/insert operation | Excel Programming | |||
Importing External Data Locks Source Workbook | Excel Programming | |||
Worksheet_Change macro locks up Excel | Excel Programming |