M
Metrazal
What am I missing? Getting the above error with this code. I want t
subtract the column "e" from "d" put the results in column "f" an
delete column "e" & "d".
Thanks,
Met
Code
-------------------
Sub Calculate_Delete()
Worksheets("Invoice").Select
For a = 1 To 1000
Cells(a, "f").Value = Cells(a, "d").Value - Cells(a, "e").Value
Next a
Sheets("Invoice").Columns("d:d").EntireColumn.Delete
Sheets("Invoice").Columns("e:e").EntireColumn.Delete
End Sub
subtract the column "e" from "d" put the results in column "f" an
delete column "e" & "d".
Thanks,
Met
Code
-------------------
Sub Calculate_Delete()
Worksheets("Invoice").Select
For a = 1 To 1000
Cells(a, "f").Value = Cells(a, "d").Value - Cells(a, "e").Value
Next a
Sheets("Invoice").Columns("d:d").EntireColumn.Delete
Sheets("Invoice").Columns("e:e").EntireColumn.Delete
End Sub