Excel VBA Vlookup

mack22

New Member
Joined
Jun 18, 2018
Messages
7
Hi Guys
I am wanting to copy rows of data from one workbook to another based on a value.

Workbook1 has a list of car parts from vehicles/stock no
stock nomodel nameyear modelpart name
a0050139112003rear spoiler
a0050139112003wiper motor
a0050559112005drivers airbag
a0050559112005driveshaft

<tbody>
</tbody>

Workbook2 needs to lookup the parts from workbook1 and copy the rows into workbook2 using a command button based on the stock no
so if stock no a005055 was entered it would copy 2 rows into workbook2.

Hope this makes!!
Many thanks
 
I have another question for you I would also like to update data from Workbook 1 to Workbook 2 without duplicating it.
Workbook 1 looks like this
stock nomodel nameyear model
a0050139112003
a0050129112003
a0050119112005
a0050109112005

<tbody>
</tbody>

Workbook 2 looks the same but needs to have the new stock no's added to it, so workbook 2 would need to have stock no a005011, a005012 and a005013 when command button clicked
stock nomodel nameyear model
a0050109112005
a0050099112003

<tbody>
</tbody>
Thanks again :)
 
Upvote 0

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I have another question for you I would also like to update data from Workbook 1 to Workbook 2 without duplicating it.
Workbook 1 looks like this
stock nomodel nameyear model
a0050139112003
a0050129112003
a0050119112005
a0050109112005

<tbody>
</tbody>

Workbook 2 looks the same but needs to have the new stock no's added to it, so workbook 2 would need to have stock no a005011, a005012 and a005013 when command button clicked
stock nomodel nameyear model
a0050109112005
a0050099112003

<tbody>
</tbody>
Thanks again :)

You need to start a new posting for this question.
 
Upvote 0

Forum statistics

Threads
1,215,260
Messages
6,123,926
Members
449,135
Latest member
NickWBA

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