need a macro to fill data from Master table to individual sheets.

Status
Not open for further replies.

Dilusha

Board Regular
Joined
May 5, 2012
Messages
58
I have Following Master Table in Sheet1

[TABLE="class: cms_table_grid, width: 100"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD]Column E[/TD]
[TD]Column F[/TD]
[TD]Column G[/TD]
[/TR]
[TR]
[TD]Row1[/TD]
[TD]Cus_Code[/TD]
[TD]Inv_Date[/TD]
[TD]Inv_No[/TD]
[TD]Cus_Name[/TD]
[TD]Value[/TD]
[TD]VAT[/TD]
[/TR]
[TR]
[TD]Row2[/TD]
[TD]BBE[/TD]
[TD]18/07/2018[/TD]
[TD]SV4525[/TD]
[TD]A CO .LTD[/TD]
[TD]11899[/TD]
[TD]1785[/TD]
[/TR]
[TR]
[TD]Row3[/TD]
[TD]BBE[/TD]
[TD]20/07/2018[/TD]
[TD]SV4531[/TD]
[TD]A CO.LTD[/TD]
[TD]16667[/TD]
[TD]2500[/TD]
[/TR]
[TR]
[TD]Row4[/TD]
[TD]DSL[/TD]
[TD]31/07/2018[/TD]
[TD]SV4825[/TD]
[TD]DS LTD[/TD]
[TD]23261[/TD]
[TD]3489[/TD]
[/TR]
[TR]
[TD]Row5[/TD]
[TD]EVE[/TD]
[TD]01/07/2018[/TD]
[TD]SV4401[/TD]
[TD]E CO LTD[/TD]
[TD]7142[/TD]
[TD]1071[/TD]
[/TR]
[TR]
[TD]Row6[/TD]
[TD]EVE[/TD]
[TD]15/07/2018[/TD]
[TD]SV4513[/TD]
[TD]E CO LTD[/TD]
[TD]6987[/TD]
[TD]1048[/TD]
[/TR]
[TR]
[TD]Row7[/TD]
[TD]EVE[/TD]
[TD]21/07/2018[/TD]
[TD]SV4625[/TD]
[TD]E CO LTD[/TD]
[TD]3107[/TD]
[TD]466[/TD]
[/TR]
</tbody>[/TABLE]



Column B is sorted & I have created sheets for each customer by the name of Cus_Code in same work book.

In sheet2 , I have following table.

Name Of Customer ...................
[TABLE="class: cms_table_grid, width: 100"]
<tbody>[TR]
[TD]Serial No[/TD]
[TD]Inv_No[/TD]
[TD]Inv_Date[/TD]
[TD]Value[/TD]
[TD]vat[/TD]
[TD]voucher No[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]



Signature ........... Date................

I want to fill above table & as per the Master table (Rows should be dynamics) & copy to the relevant sheet created with the name of Cus_Code.

Name of Customer should be filled .Column F ( voucher No) & "Signature ..... / Date ......Should be kept blank .

I use excel 2007
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Status
Not open for further replies.

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top