【发布时间】:2017-08-22 20:42:56
【问题描述】:
执行以下公式时,我不断收到 Excel VBA 错误“1004”..
Click to see the Excel Formula Solution
..在 VBA 代码中
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
有人知道如何确保正确编写 VBA 代码吗?
【问题讨论】: