dpaton05
Well-known Member
- Joined
- Aug 14, 2018
- Messages
- 2,392
- Office Version
- 365
- 2016
- Platform
- Windows
Could I get some help to write some code to copy from one table to another please?
I have the following code I tried to write but because I am still learning to code, I don't know how to debug it.
I have the following code I tried to write but because I am still learning to code, I don't know how to debug it.
Code:
Set tbl = Worksheets("NPSS_quote_sheet").ListObjects("npss_quote")
For Each tblrow In tbl.ListRows
Set wsDst = Workbooks("costing tool").Worksheets("home")
With wsDst
tblrow.Range.Resize(, 2).Copy
.Range(workbooks("costing tool").worksheets("home").listobjects("tblCosting) A & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlPasteValuesAndNumberFormats