I keep getting Excel VBA Error "1004" on executing the following formula..
Click to see the Excel Formula Solution
..in VBA Code
For i = 5 To lastrow
ws2.Cells(i, lastcolumn + 1).Formula = "=DATEVALUE(INDIRECT(LEFT($F$1,1)" & i & "))+TIMEVALUE(INDIRECT(LEFT($H$1,1)" & i & "))"
ws2.Cells(i, lastcolumn + 1).NumberFormat = "dd.mm.yyyy hh:mm:ss"
Next i
Does anyone know how to make sure to write the VBA Code correctly?