Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() the below is a macro to divide b5/b4, b7/b6 etc. Howevr if b4,b6etc. are zero the formula should give zero, below isnt quite working, any help is much app. Sub cc() i = 5 Do Until i = 15 If Cells(1 - 1, 2) = 0 Then Cells(i, 3) = 0 Else Cells(i, 3) = Cells(i, 2) / Cells(i - 1, 2) End If i = i + 2 Loop End Sub -- T De Villiers ------------------------------------------------------------------------ T De Villiers's Profile: http://www.excelforum.com/member.php...o&userid=26479 View this thread: http://www.excelforum.com/showthread...hreadid=502401 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run Time Error 1004 - Application-defined or object-defined error | Excel Programming | |||
error: ActiveCell.Offset(0, -1).Select = Application-defined or object-defined error | Excel Programming | |||
Macro Run-time Error 1004 Application Defined or Object Defined Error | Excel Programming | |||
Runtime Error 1004 -- Application Defined or Object Defined Error | Excel Programming |