I want to copy the data from sheet"RaW" Column "C" start from 2nd row.. And past it to Sheet "Nicedump" Column "D" first empty. this is continue data entry file so every time first empty will be different.. What will be the VBA code?
Dim wsCopy As Worksheet
Dim wsDest As Worksheet
Dim lCopyLastRow As Long
Dim lDestLastRow As Long
'Set variables for copy and destination sheets
Set wsCopy = Workbooks("COPYFROM.XLS").Worksheets("RaW")
Set wsDest = Workbooks("COPYTO.xls").Worksheets("Nicedump")
'1. Find last used row in the copy range based on data in column A
lCopyLastRow = wsCopy.Cells(wsCopy.Rows.Count, "c").End(xlUp).Row
'2. Find first blank row in the destination range based on data in column A
'Offset property moves down 1 row
lDestLastRow = wsDest.Cells(wsDest.Rows.Count, "d").End(xlUp).Offset(1).Row
'3. Copy & Paste Data
wsCopy.Range("C2:C" & lCopyLastRow).Copy _
wsDest.Range("D" & lDestLastRow)
Set wsCopy = Workbooks("COPYFROM.XLS").Worksheets("RaW")
Set wsDest = Workbooks("COPYTO.xls").Worksheets("Nicedump")
Set wsCopy = Worksheets("RaW")
Set wsDest = Worksheets("Nicedump")