jrwrangler
New Member
- Joined
- Mar 22, 2013
- Messages
- 16
Hello
I am trying to go down row f and if there is a value in that cell, I want it to divide row f by row c and put it in row g. I dont know much about vba really so if you could walk me through each line i would really appreciate it. thanks a lot
Dim Mycell
r1 As Range
Set r1 = ActiveSheet.Range("f2:f1000")
For Each Mycell In r1
If Mycell <> "" Then
Selection.Value = Cell.Offset(-1, 0) / Cell.Offset(-4, 0)
End If
Next Cell
I am trying to go down row f and if there is a value in that cell, I want it to divide row f by row c and put it in row g. I dont know much about vba really so if you could walk me through each line i would really appreciate it. thanks a lot
Dim Mycell
r1 As Range
Set r1 = ActiveSheet.Range("f2:f1000")
For Each Mycell In r1
If Mycell <> "" Then
Selection.Value = Cell.Offset(-1, 0) / Cell.Offset(-4, 0)
End If
Next Cell