我尝试合并三个单元格,并将其分配给其他单元格,但它无法合并第三个单元格.以下是我的代码,
For x = 2 To LastRow_Line_Site
With Sheets("Line_Site")
.Cells(x, "E") = CStr(.Cells(x, "A") & .Cells(x, "B") & .Cells(x, "C"))
End With
Next
Run Code Online (Sandbox Code Playgroud)
ColA:8009601022 ColB:77854 ColC:00340,我希望得到的结果如80096010227785400340,但结果却变成了80096010227785400000
有谁可以帮我解决这个问题?
非常感谢!!
With Sheets("Line_Site")
.Cells(x, "E").NumberFormat = "@"
.Cells(x, "E") = .Cells(x, "A").Text & .Cells(x, "B").Text & .Cells(x, "C").Text
End With
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
51 次 |
最近记录: |