我要实现的目标如下:
下面是我正在使用的代码。
Sub CopyData()
Dim LastRow As Long, ws As Worksheet
Set ws = Sheets("Sheet3")
For x = A To Z
If ws.Range(x & "1").Value <> 0 Then
ws.Range(x & "1").Copy
ws.Range(x & "2").PasteSpecial xlPasteValues
End If
Next x
End Sub