Hallo guys, this is my first post. I just learn how easy using vba in my workplace.
I've a problem here. I've a sheet that contain sales report. But sometimes the data isn't filled as their should. I want to remove that 'unclean' data and put it in another workbook.
Example:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sales Person[/TD]
[TD]Product[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]Jim[/TD]
[TD]Book[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]A[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]Dean[/TD]
[TD]Pen[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]A[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dean[/TD]
[TD]Pen[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sarah[/TD]
[TD]Book[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]A[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The criteria is:
1. If a Book then column a,b,c,d must be filled with either number or text
2. If a Pen then column a,b,c must be filled with either number or text
After i ran the VBA row 4 and 5 are not meet the criteria, so i want to delete the row and put the backup in another workbook ex:error.xls.
Thanks in advance.
I've a problem here. I've a sheet that contain sales report. But sometimes the data isn't filled as their should. I want to remove that 'unclean' data and put it in another workbook.
Example:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Sales Person[/TD]
[TD]Product[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]Jim[/TD]
[TD]Book[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]A[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]Dean[/TD]
[TD]Pen[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]A[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dean[/TD]
[TD]Pen[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sarah[/TD]
[TD]Book[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]A[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The criteria is:
1. If a Book then column a,b,c,d must be filled with either number or text
2. If a Pen then column a,b,c must be filled with either number or text
After i ran the VBA row 4 and 5 are not meet the criteria, so i want to delete the row and put the backup in another workbook ex:error.xls.
Thanks in advance.