Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50090

Macro to match cell value on two wooksheet copy data on another column on row back to 1st

$
0
0
Pinata2.xlsxHi,

I have only been a member for about 3 months and am learning vba. I am usually able to resolve most of my coding issues by myself, by reviewing posts and solutions on this forum and then working out how it works.

But this one has got me stumped! I have attached a workbook with two worksheets “Pinata2” and “Data”.

What I would like is a macro to match the job number in Pinata2 column K then match with the same job number in the data worksheet column A, if a match, copy the value of column C on the same row, back to Pinata2 and paste into the row cell being match column C. Then next row until and repeat, until end of Data rows in Pinata2.

Then to be really cheeky, in Pinata2 were job status equals “ZW” infill all data cells in row, green to show job completed.

If anybody can advise me or suggest code I would be very grateful.

Viewing all articles
Browse latest Browse all 50090

Trending Articles