你应该提交问题的代码,而不是要求提供问题的代码,但这是一个非常简单的问题。如果需要调整以适应您的需求,请尝试调整它。如果您遇到问题,请提出一个更具体的新问题,或者问题的原因。
无论如何,你需要一些VBA:
Sub someVBA()
'Set the sheets we are working with - change as needed
Dim s1 As Worksheet, s2 As Worksheet
Set s1 = Worksheets("Sheet1")
Set s2 = Worksheets("Sheet2")
'Find the last column in s2 by going way out to the end of
' of the sheet and using end(xlToLeft) and adding 1 more column
' to that. That's the next blank column
Dim lastCol As Integer
lastCol = s2.Cells(1, 1000).End(xlToLeft).Column() + 1
'Copy it over
s2.Columns(lastCol).Value = s1.Columns(1).Value
End Sub
这真是棒极了! –