Hi All,
I need help me to edit below formula to copy & paste data from FG_SHIP sheet to SHIPMENT_DATA sheet but need to separate some column.
1. Copy data from column "A3:F" & paste to "A3:F".
2. Copy data from column "G3:G" & paste to "H3:H"
Sub RoundedRectangle3_Click()
Dim wsFG_SHIP As Worksheet
Dim wsSHIPMENT_DATA As Worksheet
Dim CopyLastRow As Long
Dim DestLastRow As Long
Set wsFG_SHIP = Worksheets("FG SHIP")
Set wsSHIPMENT_DATA = Worksheets("SHIPMENT_DATA")
CopyLastRow = wsFG_SHIP.Range("A" & wsFG_SHIP.Rows.Count).End(xlUp).Row + 1
DestLastRow = wsSHIPMENT_DATA.Range("A" & wsSHIPMENT_DATA.Rows.Count).End(xlUp).Row + 1
wsFG_SHIP.Range("A3", "L" & CopyLastRow).Copy Destination:=wsSHIPMENT_DATA.Range("A" & DestLastRow)
wsFG_SHIP.Range("A3", "A" & CopyLastRow).EntireRow.Delete
End Sub
I need help me to edit below formula to copy & paste data from FG_SHIP sheet to SHIPMENT_DATA sheet but need to separate some column.
1. Copy data from column "A3:F" & paste to "A3:F".
2. Copy data from column "G3:G" & paste to "H3:H"
Sub RoundedRectangle3_Click()
Dim wsFG_SHIP As Worksheet
Dim wsSHIPMENT_DATA As Worksheet
Dim CopyLastRow As Long
Dim DestLastRow As Long
Set wsFG_SHIP = Worksheets("FG SHIP")
Set wsSHIPMENT_DATA = Worksheets("SHIPMENT_DATA")
CopyLastRow = wsFG_SHIP.Range("A" & wsFG_SHIP.Rows.Count).End(xlUp).Row + 1
DestLastRow = wsSHIPMENT_DATA.Range("A" & wsSHIPMENT_DATA.Rows.Count).End(xlUp).Row + 1
wsFG_SHIP.Range("A3", "L" & CopyLastRow).Copy Destination:=wsSHIPMENT_DATA.Range("A" & DestLastRow)
wsFG_SHIP.Range("A3", "A" & CopyLastRow).EntireRow.Delete
End Sub