从Excel Vba移动单元格值

时间:2016-02-12 07:50:35

标签: excel excel-vba vba

Sub A1right()

Dim Current As Worksheet

' Loop through all of the worksheets in the active workbook.
For Each Current In ThisWorkbook.Worksheets
    With Current
       .Range("A1:H1").Copy Destination:=.Range("B1:I1")
       .Range("A1").ClearContents
    End With
Next Current

End Sub

我想将值从A1移到H1到B1到I1。错误即将来临:( 需要帮助

0 个答案:

没有答案
相关问题