Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Exactly guys Thanks a lot i resolved it with
Sub Loop8() ' This loop does the calculating itself and writes the result into each cell Range("D1").Select Do If IsEmpty(ActiveCell.Offset(0, -1)) Then ActiveCell.Value = 0 ActiveCell.Offset(0, -1).Value = "Customer" ElseIf ActiveCell.Row = "1" Then ActiveCell.Value = ActiveCell.Offset(0, -2).Value - ActiveCell.Offset(0, -3).Value ElseIf ActiveCell.Offset(0, -1).Value = ActiveCell.Offset(-1, -1) Then ActiveCell.Value = 0 Else ActiveCell.Value = ActiveCell.Offset(0, -2).Value - ActiveCell.Offset(-1, -2).Value End If ActiveCell.Offset(1, 0).Select Loop Until IsEmpty(ActiveCell.Offset(0, -2)) End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run-time error '50290': Application-defined or object-defined erro | Excel Discussion (Misc queries) | |||
Application-defined or object-defined error on simple sort | Excel Programming | |||
Runtime error 1004- application defined or object defined erro | Excel Programming | |||
Runtime error 1004- application defined or object defined erro | Excel Programming | |||
Runtime error 1004- application defined or object defined erro | Excel Programming |