I want subtract to cell using VBA
but not work
but not work
Code:
Application.ScreenUpdating = False
Dim lr As Long
lr = Worksheets("Database").Range("C" & Rows.Count).End(xlUp).Row
Dim i As Integer
For i = 2 To lr
Worksheets("Database").Range("W" & i).Value = Worksheets("Database").Range("T", i).Value - Worksheets("Database").Range("B", i).Value
Next
Application.ScreenUpdating = True