单元格SecondSetCellInputtedNameCTR(“丰田凯美瑞”),SecondSetCellInputtedLengthCTR(“ 10” /整数)和SecondSetCellInputtedStartDateCTR(“ 2020-04”)中的值分别放置在单元格SecondSetOutputNameCTR,SecondSetCelloutputLengthCTR和SecondSetCelloutputStartDateCate中。
我已经尝试过:
1)
SecondSetCellInputtedNameCTR = Cells(SecondSetInputtedRowNumCTR, SecondSetInputtedColNumName).Value 'only thing that will change is the CTR which is row entry
SecondSetCellInputtedStartDateCTR = Cells(SecondSetInputtedRowNumCTR, SecondSetInputtedColStartDate).Value 'only thing that will change is the CTR which is row entry
SecondSetCellInputtedLengthCTR = Cells(SecondSetInputtedRowNumCTR, SecondSetInputtedColLength).Value 'only thing that will change is the CTR which is row entry
SecondSetOutputNameCTR = Cells(SecondSetOutputRowNumCTR, CellOutputNameCol)
SecondSetCelloutputLengthCTR = Cells(SecondSetOutputRowNumCTR, CellOutputLengthCol)
SecondSetCelloutputStartDateCTR = Cells(SecondSetOutputRowNumCTR, CellOutputStartDateCol)
2)注意.value
是如何被带走的:
SecondSetCellInputtedNameCTR = Cells(SecondSetInputtedRowNumCTR, SecondSetInputtedColNumName) 'only thing that will change is the CTR which is row entry
SecondSetCellInputtedStartDateCTR = Cells(SecondSetInputtedRowNumCTR, SecondSetInputtedColStartDate) 'only thing that will change is the CTR which is row entry
SecondSetCellInputtedLengthCTR = Cells(SecondSetInputtedRowNumCTR, SecondSetInputtedColLength) 'only thing that will change is the CTR which is row entry
SecondSetOutputNameCTR = Cells(SecondSetOutputRowNumCTR, CellOutputNameCol)
SecondSetCelloutputLengthCTR = Cells(SecondSetOutputRowNumCTR, CellOutputLengthCol)
SecondSetCelloutputStartDateCTR = Cells(SecondSetOutputRowNumCTR, CellOutputStartDateCol)`
在上一节中,我显示了这些术语中的每一个等于什么。
SecondSetInputtedRowNumCTR
是从E列的第二个数据集中查看的行号。
Do While SecondSetInputtedRowNumCTR < LengthSecondSet + 1
SecondSetOutputNameCTR = SecondSetCellInputtedNameCTR
SecondSetCelloutputLengthCTR = SecondSetCellInputtedLengthCTR
SecondSetCelloutputStartDateCTR = SecondSetCellInputtedStartDateCTR
SecondSetInputtedRowNumCTR = SecondSetInputtedRowNumCTR + 1
Loop
我希望得到:
SecondSetOutputNameCTR cell
成为“丰田凯美瑞”
SecondSetCelloutputLengthCTR
单元格为“ 10”,并且
SecondSetCellInputtedStartDateCTR
单元格为“ 2020-04”
我实际上得到了:所有输出单元格的空值。
那是为什么?