Hi all,
Wondering if I can pick your brains. I have a training log that I am trying to automate. Each staff member has a Workbook (all in the same folder but with their name) with names of training, code, refresh rate, type and date completed in Columns A-E respectively. What I am trying to do (and struggling with) is the copy all of this data into the Masterbook which the management will use to generate reports.
Key points:
Staff workbook - worksheet of interest is called StaffTrainingLog.
Column within StaffTrainingLog that I want to copy is Column E which has name of the staff member in row 1 followed by training completion dates from row 2-200 (this is all in Column E only and no other columns interest me).
Important note regarding the above is that the staff may not have completed all training so therefore there is a chance that there will be blanks within that range so it is important that all of range E1:E200 is copied.
This is then to be copied to the MasterWorkBook called MgtMT.
The worksheet within MgtMT this data is to be copied to is called MTStaff.
Data is to be copied to Column B1:B200 for the first StaffTrainingLog and in the same order (the training will already be prepopulated in Column A).
This is to be looped for all other xlsx files within the folder and the following data to be pasted onto columns B, C, D etc so that it Offsets a column for each StaffTrainingLog.
I guess it would also be useful to have a delete range B1:BZ200 for MTStaff at the start of the macro so that each time they hit the macro the latest data is presented to them.
I hope that makes sense - I couldnt upload my actual file as my work computer doesn't let me use this website and that the data might be considered sensitive even though I have anonymised everything.
I was trying to do this myself by recording macro's and mutilating other peoples VBA code but I seem to have killed it!
Any and all help is greatly appreciated.
Bookmarks