ThrottleWorks
Excel Ninja
Run Time Error 1004
Application defined or object defined error.
Hi,
I am running following loop, sometimes it works, sometimes it gives me bug.
I am failing to understand the reason.
sub Updating_Monthly_Borrowing_Fee_Column_DG()
Application.ScreenUpdating = True
Dim I As Long
I = Cells(Rows.Count, 1).End(xlUp).Row
Dim rng As Range
Set rng = Range("dg3:dg" & I)
For Each rn In rng
rn.Value = rn + rn.Offset(rn, -2)
Next
MsgBox "Done !"
Application.ScreenUpdating = False
End Sub
Can anyone help me in this please.
Application defined or object defined error.
Hi,
I am running following loop, sometimes it works, sometimes it gives me bug.
I am failing to understand the reason.
sub Updating_Monthly_Borrowing_Fee_Column_DG()
Application.ScreenUpdating = True
Dim I As Long
I = Cells(Rows.Count, 1).End(xlUp).Row
Dim rng As Range
Set rng = Range("dg3:dg" & I)
For Each rn In rng
rn.Value = rn + rn.Offset(rn, -2)
Next
MsgBox "Done !"
Application.ScreenUpdating = False
End Sub
Can anyone help me in this please.