someone please put me out of my misery. i have finally broken down after 5 hours of struggle and decided to ask for help.
this is the situation.
sheet 1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Case[/TD]
[TD]date[/TD]
[TD]name[/TD]
[TD]product[/TD]
[TD]price[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]10-oct[/TD]
[TD]john[/TD]
[TD]mobile[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]15-oct[/TD]
[TD]mark[/TD]
[TD]tv[/TD]
[TD]1500[/TD]
[/TR]
</tbody>[/TABLE]
sheet 2
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]case[/TD]
[TD]date[/TD]
[TD]name[/TD]
[TD]category[/TD]
[TD]purpose[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]16-oct[/TD]
[TD]anthony[/TD]
[TD]phone[/TD]
[TD]repair[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]30-oct[/TD]
[TD]mathew[/TD]
[TD]laptop[/TD]
[TD]fix[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]1-nov[/TD]
[TD]someone[/TD]
[TD]something[/TD]
[TD]something[/TD]
[/TR]
</tbody>[/TABLE]
i will have multiple sheets like this, about 10 in total each having different columns apart from the first 3.
I need to create a macro so that when i enter a case letter (eg A) in a cell and run the macro, it gives me this result in a new sheet.
sheet 3
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]case
[/TD]
[TD]date[/TD]
[TD]name[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]10-oct[/TD]
[TD]john[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]16-oct[/TD]
[TD]anthony[/TD]
[/TR]
</tbody>[/TABLE]
i need only the columns with same headings to be copied. i dont care for the rest. the arrangement of the first 3 columns will be same in all sheets..only the last few columns will be different. but that shouldnt be a problem right? because i dont need those last few different columns.
Im still learning vb so new to the codes, if someone could please write for me a simple to understand code that i can modify.
Thanks.
this is the situation.
sheet 1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Case[/TD]
[TD]date[/TD]
[TD]name[/TD]
[TD]product[/TD]
[TD]price[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]10-oct[/TD]
[TD]john[/TD]
[TD]mobile[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]15-oct[/TD]
[TD]mark[/TD]
[TD]tv[/TD]
[TD]1500[/TD]
[/TR]
</tbody>[/TABLE]
sheet 2
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]case[/TD]
[TD]date[/TD]
[TD]name[/TD]
[TD]category[/TD]
[TD]purpose[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]16-oct[/TD]
[TD]anthony[/TD]
[TD]phone[/TD]
[TD]repair[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]30-oct[/TD]
[TD]mathew[/TD]
[TD]laptop[/TD]
[TD]fix[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]1-nov[/TD]
[TD]someone[/TD]
[TD]something[/TD]
[TD]something[/TD]
[/TR]
</tbody>[/TABLE]
i will have multiple sheets like this, about 10 in total each having different columns apart from the first 3.
I need to create a macro so that when i enter a case letter (eg A) in a cell and run the macro, it gives me this result in a new sheet.
sheet 3
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]case
[/TD]
[TD]date[/TD]
[TD]name[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]10-oct[/TD]
[TD]john[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]16-oct[/TD]
[TD]anthony[/TD]
[/TR]
</tbody>[/TABLE]
i need only the columns with same headings to be copied. i dont care for the rest. the arrangement of the first 3 columns will be same in all sheets..only the last few columns will be different. but that shouldnt be a problem right? because i dont need those last few different columns.
Im still learning vb so new to the codes, if someone could please write for me a simple to understand code that i can modify.
Thanks.