css0911
Board Regular
- Joined
- Sep 10, 2013
- Messages
- 127
Dear All
Please help me in this scenario.
I have a master data sheet. Sample as below.
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Input Date[/TD]
[TD]20/01/2018[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Sr.No.[/TD]
[TD]Emp. Name[/TD]
[TD]Gate1[/TD]
[TD]Gate2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1[/TD]
[TD]Thomas[/TD]
[TD]20/01/2018[/TD]
[TD]01/02/2018[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]2[/TD]
[TD]Bobby`[/TD]
[TD]10/03/2018[/TD]
[TD]20/01/2018[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]3[/TD]
[TD]Kim[/TD]
[TD]20/01/2018[/TD]
[TD]20/01/2018[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Column C&D shows the gatepass expiry date for respective gates.
User will input the expiry date in B1
Using this sheet i want to generate two sheets showing the matching expiry dates for two gates
Output sheet for Gate 1
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]c[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Sr.No[/TD]
[TD]Emp. Name[/TD]
[TD]Gate1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]Thomas[/TD]
[TD]20/01/2018[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2[/TD]
[TD]Kim[/TD]
[TD]20/01/2018[/TD]
[/TR]
</tbody>[/TABLE]
Output sheet for Gate 2
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Sr.No[/TD]
[TD]Emp.Name[/TD]
[TD]Gate2[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]Bobby[/TD]
[TD]20/01/2018[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2[/TD]
[TD]Kim[/TD]
[TD]20/01/2018[/TD]
[/TR]
</tbody>[/TABLE]
Please help me with a vb code
Thanks in advance.
CSS
Please help me in this scenario.
I have a master data sheet. Sample as below.
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Input Date[/TD]
[TD]20/01/2018[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Sr.No.[/TD]
[TD]Emp. Name[/TD]
[TD]Gate1[/TD]
[TD]Gate2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1[/TD]
[TD]Thomas[/TD]
[TD]20/01/2018[/TD]
[TD]01/02/2018[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]2[/TD]
[TD]Bobby`[/TD]
[TD]10/03/2018[/TD]
[TD]20/01/2018[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]3[/TD]
[TD]Kim[/TD]
[TD]20/01/2018[/TD]
[TD]20/01/2018[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Column C&D shows the gatepass expiry date for respective gates.
User will input the expiry date in B1
Using this sheet i want to generate two sheets showing the matching expiry dates for two gates
Output sheet for Gate 1
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]c[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Sr.No[/TD]
[TD]Emp. Name[/TD]
[TD]Gate1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]Thomas[/TD]
[TD]20/01/2018[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2[/TD]
[TD]Kim[/TD]
[TD]20/01/2018[/TD]
[/TR]
</tbody>[/TABLE]
Output sheet for Gate 2
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Sr.No[/TD]
[TD]Emp.Name[/TD]
[TD]Gate2[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]Bobby[/TD]
[TD]20/01/2018[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2[/TD]
[TD]Kim[/TD]
[TD]20/01/2018[/TD]
[/TR]
</tbody>[/TABLE]
Please help me with a vb code
Thanks in advance.
CSS