Read and write from excel sheet to another excel sheet using java or vb

ChuckFin

New Member
Joined
Aug 20, 2013
Messages
2
:confused:Hi All,

I have an excel document that's a very long list and i want to automate my process with extract certain information for my new document, but using java. I am also open to vb.

So I have 5 columns with information that i will need to use to create this new excel sheet. See example:


Sample Source File:
[TABLE="width: 543"]
<tbody>[TR]
[TD]CatID[/TD]
[TD]Website[/TD]
[TD]Level[/TD]
[TD] Access[/TD]
[TD] AccessKey[/TD]
[/TR]
[TR]
[TD]honda[/TD]
[TD]www.honda.com[/TD]
[TD="align: right"]2[/TD]
[TD]https://access.car-me.com[/TD]
[TD]65ri9387rg 34fdwtrw32[/TD]
[/TR]
[TR]
[TD]toyota[/TD]
[TD]www.toyota.com[/TD]
[TD="align: right"]2[/TD]
[TD]https://access.car-me.com[/TD]
[TD]t34t34t34yu56g36ert43[/TD]
[/TR]
[TR]
[TD]acura[/TD]
[TD]www.acura.com[/TD]
[TD="align: right"]2[/TD]
[TD]https://access.car-me.com[/TD]
[TD]nftr65237u6t24125y547[/TD]
[/TR]
[TR]
[TD]hyundai[/TD]
[TD][/TD]
[TD="align: right"]2[/TD]
[TD]https://access.car- me.com[/TD]
[TD]46332r347656uhjndatw[/TD]
[/TR]
</tbody>[/TABLE]

And i want to take that and make it look like this:
"cars/images/[INSERT CatID]/car_[INSERT CatID]_color.jpg"
:confused:
[TABLE="width: 2479"]
<tbody>[TR]
[TD]CatID[/TD]
[TD]Website[/TD]
[TD]Previmage[/TD]
[TD]Previmage2[/TD]
[TD]WebEntrance[/TD]
[TD]WebEntrance2[/TD]
[TD]Mobileimage[/TD]
[TD]Mobileimage2[/TD]
[TD]Access[/TD]
[TD]level[/TD]
[TD]AccessKey[/TD]
[/TR]
[TR]
[TD]honda[/TD]
[TD]www.honda.com[/TD]
[TD]cars/images/honda/Red/car_honda_color.jpg[/TD]
[TD]cars/images/honda/Red/car_honda_color2x.jpg[/TD]
[TD]cars/images/honda/Red/car_honda_color.jpg[/TD]
[TD]cars/images/honda/Red/car_honda_color2x.jpg[/TD]
[TD]cars/images/honda/Red/car_honda_color.jpg[/TD]
[TD]cars/images/honda/Red/car_honda_color2x.jpg[/TD]
[TD]https://access.car-me.com[/TD]
[TD="align: right"]2[/TD]
[TD]65ri9387rg 34fdwtrw32[/TD]
[/TR]
[TR]
[TD]toyota[/TD]
[TD]www.toyota.com[/TD]
[TD]cars/images/toyota/Red/car_toyota_color.jpg[/TD]
[TD]cars/images/toyota/Red/car_toyota_color2x.jpg[/TD]
[TD]cars/images/toyota/Red/car_toyota_color.jpg[/TD]
[TD]cars/images/toyota/Red/car_toyota_color2x.jpg[/TD]
[TD]cars/images/toyota/Red/car_toyota_color.jpg[/TD]
[TD]cars/images/toyota/Red/car_toyota_color2x.jpg[/TD]
[TD]https://access.car-me.com[/TD]
[TD="align: right"]2[/TD]
[TD]t34t34t34yu56g36ert43[/TD]
[/TR]
[TR]
[TD]acura[/TD]
[TD]www.acura.com[/TD]
[TD]cars/images/acura/Red/car_acura_color.jpg[/TD]
[TD]cars/images/acura/Red/car_acura_color2x.jpg[/TD]
[TD]cars/images/acura/Red/car_acura_color.jpg[/TD]
[TD]cars/images/acura/Red/car_acura_color2x.jpg[/TD]
[TD]cars/images/acura/Red/car_acura_color.jpg[/TD]
[TD]cars/images/acura/Red/car_acura_color2x.jpg[/TD]
[TD]https://access.car-me.com[/TD]
[TD="align: right"]2[/TD]
[TD]nftr65237u6t24125y547[/TD]
[/TR]
[TR]
[TD]hyundai[/TD]
[TD][/TD]
[TD]cars/images/hyundai/Red/car_hyundai_color.jpg[/TD]
[TD] cars/images/hyundai/Red/car_hyundai_color2x.jpg[/TD]
[TD] cars/images/hyundai/Red/car_hyundai_color.jpg[/TD]
[TD]cars/images/hyundai/Red/car_hyundai_color2x.jpg[/TD]
[TD]cars/images/hyundai/Red/car_hyundai_color.jpg[/TD]
[TD]cars/images/hyundai/Red/car_hyundai_color2x.jpg[/TD]
[TD]https://access.car-me.com[/TD]
[TD="align: right"]2[/TD]
[TD]46332r347656uhjndatw[/TD]
[/TR]
</tbody>[/TABLE]

So, the idea is that i want to take the CatID and use it to create the name of the file of the .jpg and also in the path. See honda in bold. Its also case sensitive

The structure that i want to accomplish is:

cars/images/[INSERT CatID]/car_[INSERT CatID]_color.jpg

Everything else is much dymanic


I can provide more information, if needs be.
Thanks in advance for all the help :)
 
Last edited:

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