I have a report for work that I need to format a certain way every week, and it takes a couple hours. I am hoping to have help creating a macro to make it quicker. I would need to save the macro into a personal macro workbook or be able to run it in all workbooks.
I have uploaded a copy of the report. On the Master Tab Beginning sheet is what I start with and Master Tab End sheet is what it looks like when I'm done. I copy and paste the information into a spreadsheet so I can't change the merged cells. Here are the steps I take to format it.
notice on Master Tab Beginning sheet columns H:L some cells are merged in groups of 3 some in groups of 2. (ex. H49:L50). For groups of 2 I match name and copy to bottom 2 cells (ex. J49:L50 copied into E185:F186, then highlight E184:F184 the same highlighted color as E185:F186)
Notice the "Not on File" is merged over 3 cells or it can be a single cell.
The names are often in different order and there is more and more names all the time. Using more rows.
Hoping someone can help me save time.
I have uploaded a copy of the report. On the Master Tab Beginning sheet is what I start with and Master Tab End sheet is what it looks like when I'm done. I copy and paste the information into a spreadsheet so I can't change the merged cells. Here are the steps I take to format it.
- insert 3 columns after column G
- copy M3:O3 "Chemtrade CBT Badge, Chemtrade Onsite Badge, HF Sinclair" into G3:I3
- match the names in columns K:L to the names in columns C
- copy information in columns M:N into columns G:I that matches the name. (ex. Andersen Joe M4:O6. I copy M4:O6 into G10:I12) I do this for each name in columns K:L
- delete columns K:O
- copy N3 into J3 "Marathon"
- match names in columns L:M to names in columns C
- copy information in column N to column J, under the correct name. Do this for each name in column L:M
- delete columns L:N
- copy O3
3 into K3:L3
- match names in columns M:N to names in columns C
- copy information in O
to columns K:L, under the correct name. Do this for each name in M:N
- delete columns M
- fill empty cells in columns E:L with "Not on File"
- alphabetize by last names
- select all
- change font to Arial 12 pt.
- select cell C3:M3
- highlight to .499984740745262
- change font color to white in cells C3:M3
- types "Notes" in cell M3
- make width of columns C
to 15
- make width of columns E:L 13.86
- make row 3 height 95.25
- auto height all other rows
notice on Master Tab Beginning sheet columns H:L some cells are merged in groups of 3 some in groups of 2. (ex. H49:L50). For groups of 2 I match name and copy to bottom 2 cells (ex. J49:L50 copied into E185:F186, then highlight E184:F184 the same highlighted color as E185:F186)
Notice the "Not on File" is merged over 3 cells or it can be a single cell.
The names are often in different order and there is more and more names all the time. Using more rows.
Hoping someone can help me save time.