Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,566
- Office Version
- 365
- 2016
- Platform
- Windows
Hello,
I am struggling with the syntax of the following line in red ...
I am trying to populate column Z from row 2 to the end of the database with dynamic formula equivalent to cells(r,"Z")=cells(r,"Y") + cells(r,"E")
I am struggling with the syntax of the following line in red ...
Rich (BB code):
With ws_srcdata
src_lrow = .Cells(Rows.Count, 7).End(xlUp).Row
src_rowcnt = src_lrow - 1
'populate calculated columns
For r = 2 To src_lrow
'Z - Net Use Hours
.Cells(r, 26).Formula = "= $Y$" & r & "$E$" & r"
Next r
End With
End Sub
I am trying to populate column Z from row 2 to the end of the database with dynamic formula equivalent to cells(r,"Z")=cells(r,"Y") + cells(r,"E")
Last edited: