Hi Experts,
Hope you all are doing great.
I have tried to write macros, but finding some error on the same.
I am trying to write below code of 1st time copy paste through macros and than 2nd time cut paste through macros to the attached excel sheet.
Hence, Please help me for solution.
Option Explicit
Sub Macro13()
'
' Macro13 Macro
'
' Keyboard Shortcut: Ctrl+Shift+R
'
Dim LstRw As Long, RepLst As Long 'varialble for last in Sheet 1 and Report
'Delete 4 rows after row 2 in Report first:
With Sheets("Report")
' .Range("A3:A6").EntireRow.Delete
RepLst = WorksheetFunction.Max(.Range("A" & .Rows.Count).End(xlUp).Row, 3) 'pick row 3 or more
' copy from Sheet 1
Sheets("Sheet1").Range("A3:C6").Copy
' paste to same rows in Report
.Range("A" & (RepLst + 1)).PasteSpecial
Sheets("Report").Range("A7:C38").Cut
.Worksheets("Report").Range("A3:C34").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
End With
'MsgBox "Data added to Report"
ActiveWorkbook.Save
End Sub
Regards,