Hi,
I was hoping someone could help with some VBA code for my spreadsheet. My wife works with schools, teaching kids gym throughout the week at different times. I want to make the spreadsheet for her schedule more automated.
I have 2 tables on the same sheet, one below the other. They both have the same columns and a list of the same 18 schools with a list of the dates for the classes and then times of the day for each class. The top table is sorted by the school name, this table must remain static in the same order as it links to several other sheets in the workbook.
The bottom table is sorted by the day of the week and the order of schools can change depending when the classes will be (this can constantly change, the the bottom table is the one that is edited). I currently have a macro button on the top table for each school that can copy the row for the bottom table based on the position of the active cell (I have to do this for each school, its not much quicker than copy/paste manually.
I want to write a code that will search for the school name in the bottom table and then copy/paste that row into the top table against the correct school in one action, then I will link this to a single macro button.
Any help on where to start with this would be greatly appreciated. Below is an example table.
Thanks
Skmerrey
I was hoping someone could help with some VBA code for my spreadsheet. My wife works with schools, teaching kids gym throughout the week at different times. I want to make the spreadsheet for her schedule more automated.
I have 2 tables on the same sheet, one below the other. They both have the same columns and a list of the same 18 schools with a list of the dates for the classes and then times of the day for each class. The top table is sorted by the school name, this table must remain static in the same order as it links to several other sheets in the workbook.
The bottom table is sorted by the day of the week and the order of schools can change depending when the classes will be (this can constantly change, the the bottom table is the one that is edited). I currently have a macro button on the top table for each school that can copy the row for the bottom table based on the position of the active cell (I have to do this for each school, its not much quicker than copy/paste manually.
I want to write a code that will search for the school name in the bottom table and then copy/paste that row into the top table against the correct school in one action, then I will link this to a single macro button.
Any help on where to start with this would be greatly appreciated. Below is an example table.

Thanks
Skmerrey