I have two sheets in same workbook. I want to copy data from column A to next empty column in both sheets.
I get an error in paste line of the code.
Sub Macro1()
'
' Macro1 Macro
'
'
Sheets("Sheet1").Select
Range("A1:A6").Select
Selection.Copy
Range("B1").Select
Selection.PasteSpecial Paste:=xlPasteValues.Cells(1, Columns.Count).End(xlToLeft).Offset(0, 1)
Range("A8").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = ""
Sheets("Sheet2").Select
Range("A1:A6").Select
Selection.Copy
Range("B1").Select
Selection.PasteSpecial Paste:=xlPasteValues.Cells(1, Columns.Count).End(xlToLeft).Offset(0, 1)
Range("A9").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = ""
Range("A10").Select
End Sub