#2
吹水佬2022-01-18 11:35
|
先以2021年1月份为例,我的代码是
For j = 1 To 31
For k = 0 To 23
Cells(j, 8).Value = "2021" + "/" + "1" + "/" + "j" + " " + "k" + ":" + "00"
Next
Next
输出是:2021/1/j k:00(正确结果是2021/1/1 0:00)
明显问题出在常数参数数据的引用上,求大佬解惑