HelloAll,
I am new to the VBA world, but I have beenusing the different threads here to answer some of my more basic questions, buti have kind of a complicated one. Here goes...
I have an Excel spreadsheet that contains usertransaction data for an inventory system that we use. Each row represents aseparate transaction with specific data that needs to be analyzed. Iam trying to use VBA code to pull the relevant data and display it in a newsheet, but I am stuck. The raw data looks something like what is below. The raw data set hasabout 40 columns, and I am having troubles ignoring the extra data andcapturing the relevant stuff.
[TABLE="width: 500"]
<tbody>[TR]
[TD]User[/TD]
[TD]Item[/TD]
[TD]Transaction[/TD]
[TD]Quantity[/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]Hammer[/TD]
[TD]Remove[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]Nails[/TD]
[TD]Remove[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]Nails[/TD]
[TD]Return[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]Wrench[/TD]
[TD]Remove[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]Hammer[/TD]
[TD]Remove[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]Wrench[/TD]
[TD]Return[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Sam[/TD]
[TD]Nails[/TD]
[TD]Remove[/TD]
[TD]60[/TD]
[/TR]
[TR]
[TD]Sam[/TD]
[TD]Nails[/TD]
[TD]Return[/TD]
[TD]35[/TD]
[/TR]
[TR]
[TD]Bill[/TD]
[TD]Hammer[/TD]
[TD]Remove[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Bill[/TD]
[TD]Hammer[/TD]
[TD]Remove[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Fred[/TD]
[TD]Hammer[/TD]
[TD]Remove[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Fred[/TD]
[TD]Nails[/TD]
[TD]Remove[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]Fred[/TD]
[TD]Wrench[/TD]
[TD]Remove[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Fred[/TD]
[TD]Nails[/TD]
[TD]Return[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Here is the kind of output that I am looking for.
[TABLE="width: 500"]
<tbody>[TR]
[TD]User[/TD]
[TD]Item[/TD]
[TD]Quantity[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Hammer[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Nails[/TD]
[TD]33[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Wrench[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Hammer[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sam[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Nails[/TD]
[TD]25[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Hammer[/TD]
[TD]9[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Fred[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Hammer[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Nails[/TD]
[TD]24[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Wrench[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I don't know if what I asking is even possible, but I am stumped and wanted to get some outside help.
Thanks in advance for you time and consideration.
BWL
I am new to the VBA world, but I have beenusing the different threads here to answer some of my more basic questions, buti have kind of a complicated one. Here goes...
I have an Excel spreadsheet that contains usertransaction data for an inventory system that we use. Each row represents aseparate transaction with specific data that needs to be analyzed. Iam trying to use VBA code to pull the relevant data and display it in a newsheet, but I am stuck. The raw data looks something like what is below. The raw data set hasabout 40 columns, and I am having troubles ignoring the extra data andcapturing the relevant stuff.
[TABLE="width: 500"]
<tbody>[TR]
[TD]User[/TD]
[TD]Item[/TD]
[TD]Transaction[/TD]
[TD]Quantity[/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]Hammer[/TD]
[TD]Remove[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]Nails[/TD]
[TD]Remove[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]Nails[/TD]
[TD]Return[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]Wrench[/TD]
[TD]Remove[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]Hammer[/TD]
[TD]Remove[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]Wrench[/TD]
[TD]Return[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Sam[/TD]
[TD]Nails[/TD]
[TD]Remove[/TD]
[TD]60[/TD]
[/TR]
[TR]
[TD]Sam[/TD]
[TD]Nails[/TD]
[TD]Return[/TD]
[TD]35[/TD]
[/TR]
[TR]
[TD]Bill[/TD]
[TD]Hammer[/TD]
[TD]Remove[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Bill[/TD]
[TD]Hammer[/TD]
[TD]Remove[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Fred[/TD]
[TD]Hammer[/TD]
[TD]Remove[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Fred[/TD]
[TD]Nails[/TD]
[TD]Remove[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]Fred[/TD]
[TD]Wrench[/TD]
[TD]Remove[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Fred[/TD]
[TD]Nails[/TD]
[TD]Return[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Here is the kind of output that I am looking for.
[TABLE="width: 500"]
<tbody>[TR]
[TD]User[/TD]
[TD]Item[/TD]
[TD]Quantity[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Hammer[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Nails[/TD]
[TD]33[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Wrench[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Hammer[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Sam[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Nails[/TD]
[TD]25[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Hammer[/TD]
[TD]9[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Fred[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Hammer[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Nails[/TD]
[TD]24[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Wrench[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I don't know if what I asking is even possible, but I am stumped and wanted to get some outside help.
Thanks in advance for you time and consideration.
BWL