Hi all,
I am a VBA novice and this task is a little past what I know right now. I am working to refine a scheduling spreadsheet I am using for work. I have an example below. I need a VBA to format the schedule as shown in rows 6 and 7. As of now, the values in rows 3 and 4 are how they appear when the schedule is complete. Essentially, I need the values moved to a separate line based on the value (carriage return added). If "00:00 - 08:00" is present, then it should be at the top of the cell. "08:00 - 16:00" should be in the center of the cell. "16:00 - 24:00" should be at the bottom of the cell." Therefore if a person is scheduled 0000-0800 and 1600-2400, then it should have the first shift at the top, a blank line in the middle of the cell, and the 1600 shift listed at the bottom of the cell.
The range of the cells needing this formatting is C3:I46
Thanks in advance, all.
I am a VBA novice and this task is a little past what I know right now. I am working to refine a scheduling spreadsheet I am using for work. I have an example below. I need a VBA to format the schedule as shown in rows 6 and 7. As of now, the values in rows 3 and 4 are how they appear when the schedule is complete. Essentially, I need the values moved to a separate line based on the value (carriage return added). If "00:00 - 08:00" is present, then it should be at the top of the cell. "08:00 - 16:00" should be in the center of the cell. "16:00 - 24:00" should be at the bottom of the cell." Therefore if a person is scheduled 0000-0800 and 1600-2400, then it should have the first shift at the top, a blank line in the middle of the cell, and the 1600 shift listed at the bottom of the cell.
The range of the cells needing this formatting is C3:I46
Thanks in advance, all.