tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,210
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
Hope you can help
I have two sheets
Event
Stock
Now in Event I have a list of stock items with prices
I'd like to be able to update these prices with the prices in my Stock tab,
So Event Range(N24:N & lastRow) is Name
So Event Range(P24:P & lastRow) is Price
So Stock Range(I11:I & lastRow) is Name
So Stock Range(J11:J & lastRow) is Price
so the macro in english would read something like,
For each Name in range Event Range(N24:N & lastRow) find name in Stock Range(I11:I & lastRow)
if you can not find this name, goto next,
if you find name then take the price from column J and put it into Event Range(P what ever row we are on.
hope thats clear,
please help if you can
Thanks
Tony
Hope you can help
I have two sheets
Event
Stock
Now in Event I have a list of stock items with prices
I'd like to be able to update these prices with the prices in my Stock tab,
So Event Range(N24:N & lastRow) is Name
So Event Range(P24:P & lastRow) is Price
So Stock Range(I11:I & lastRow) is Name
So Stock Range(J11:J & lastRow) is Price
so the macro in english would read something like,
For each Name in range Event Range(N24:N & lastRow) find name in Stock Range(I11:I & lastRow)
if you can not find this name, goto next,
if you find name then take the price from column J and put it into Event Range(P what ever row we are on.
hope thats clear,
please help if you can
Thanks
Tony