hi, after a long time of searching I decided to post my question and ask for help.
I have a data like this from sales, and I should send it to invoice template for print. I want to create a macro
asking for invoice number to print. then send data to a template invoice on a sheet 2
[TABLE="width: 530"]
<colgroup><col><col><col span="4"><col><col></colgroup><tbody>[TR]
[TD]Inv#[/TD]
[TD][/TD]
[TD]Date[/TD]
[TD][/TD]
[TD]Desc[/TD]
[TD]Qty[/TD]
[TD]Length[/TD]
[TD]Width[/TD]
[TD]Thickness[/TD]
[TD][/TD]
[TD]CubicM[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]230[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.01725[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]250[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.02125[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]260[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.02340[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.02850[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Pine[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.11250[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Pine[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.07800[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]245[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0184[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]245[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0184[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]250[/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0200[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]260[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0221[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]280[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0252[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]255[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0242[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Pine[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.1125[/TD]
[/TR]
</tbody>[/TABLE]
on sheet 2 invoice template it should look like this
invoice number 13
14 A B C
15 0.0904 4 Oak2
16 0.1905 9 pine
Thanks in advance
ellilio
I have a data like this from sales, and I should send it to invoice template for print. I want to create a macro
asking for invoice number to print. then send data to a template invoice on a sheet 2
[TABLE="width: 530"]
<colgroup><col><col><col span="4"><col><col></colgroup><tbody>[TR]
[TD]Inv#[/TD]
[TD][/TD]
[TD]Date[/TD]
[TD][/TD]
[TD]Desc[/TD]
[TD]Qty[/TD]
[TD]Length[/TD]
[TD]Width[/TD]
[TD]Thickness[/TD]
[TD][/TD]
[TD]CubicM[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]230[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.01725[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]250[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.02125[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]260[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.02340[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.02850[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Pine[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.11250[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Pine[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.07800[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]245[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0184[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]245[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0184[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]250[/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0200[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]260[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0221[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]280[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0252[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]255[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0242[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Pine[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.1125[/TD]
[/TR]
</tbody>[/TABLE]
on sheet 2 invoice template it should look like this
invoice number 13
14 A B C
15 0.0904 4 Oak2
16 0.1905 9 pine
Thanks in advance
ellilio