Hi. I have the following code, but Excel doesn't know what I'm trying to accomplish. Hopefully a human can see what I'm trying to do and give me the correct syntax. Thanks in advance.
Code:
For Each c In Range("J2:P" & LastInputRow)
cAddr = c.Address
If c.Value > 0 Then
ShiftHours = c.Value 'value from the current cell
EmpCode = cell(c.Row, 4).Value 'value from column 4 in the row of the current cell
EmpArea = cell(c.Row, 8).Value 'value from column 8 in the row of the current cell
ShiftDate = cell(1, c.Col).Value 'value from row 1 in the column of the current cell