Hi Guys,
have a problem which I suspect will require a VBA solution and for the initiated I'm sure will be a simple thing to do but for an early learner such as myself is a right pain! I realize there are many posts online about vba code to copy rows based on criteria into another worksheet but they all seam too complicated for my needs. All i want to do is copy rows from one sheet to another based on a single criteria - not multiple criteria to multiple worksheet!
Here's the problem:
My workbook (see attached) has a sheet called "PANELS". Sometimes the rows in that sheet will have a "C" in column B. I would like to copy all the rows from the "PANELS" sheet that contain a C in this column into the new sheet "CNC SUMMARY" and paste that data from row 11 onwards in the "CNC SUMMARY" sheet.
So using the attached example I would like the rows in the "PANELS" sheet that currently shows Part no.s 'P2 - C' in row 12 and 'P4 - C' in row 14 to be copied and pasted into rows 11 and 12 respectively in sheet "CNC SUMMARY".
Greater functionality - keep sheet "CNC SUMMARY" updated if any changes happen in sheet "PANELS":
it is likely that sometimes after copying the appropriate rows into the "CNC SUMMARY" sheet that there will be changes made on the "PANELS" sheet. Admittedly I could write another macro to clear the "CNC SUMMARY" sheet before re-copying in new data but, even better, would be if the data on the "CNC SUMMARY" sheet auto updates as the info on the "PANELS" sheet changes.
So again using the attached example - if row 12 in the "PANELS" sheet no longer has a C in column B but then row 15 does then the result on the "CNC SUMMARY" sheet will be that Part no. 'P4 - C' will move from row 12 into row 11 on the "CNC SUMMARY" sheet and row 15 from the "PANELS" sheet will be copied into row 12 on the "CNC SUMMARY SHEET".
It would be great if this could all happen without my colleges - i.e. crotchety woodworkers using excel - doing anything although if that's not possible I could put a button on the "CNC SUMMARY" sheet saying 'Update' that would run the macro and I'd just have to remind them to press it regularly!
I hope that all makes sense. So to summaries: A macro to just do the copying/pasting bit if nothing else would be great although a macro to do this and also auto update (wether by a button or even a 'look no hands!' solution) would be totally amazing!!!
I'm really keen to understand this VBA malarkey so all help will be gratefully received.
Thanks in advance,
Oliver
Bookmarks