MichaelRSnow
Active Member
- Joined
- Aug 3, 2010
- Messages
- 409
Afternoon All
Anyone know if you can get VBA to fill in the gaps based on the entry above, for example, A1 'Rate1' is copied down until it hits A5 'Rate2', then Rate2 is copied down until it hits A7 'Rate3' etc, End result is it starts off looking like table to the left and end up looking like table to the right?
<COLGROUP><COL style="WIDTH: 22pt; mso-width-source: userset; mso-width-alt: 1060" width=29><COL style="WIDTH: 48pt" span=3 width=64><COL style="WIDTH: 20pt; mso-width-source: userset; mso-width-alt: 950" width=26><COL style="WIDTH: 22pt; mso-width-source: userset; mso-width-alt: 1060" width=29><COL style="WIDTH: 48pt" span=3 width=64><TBODY>
</TBODY>
Anyone know if you can get VBA to fill in the gaps based on the entry above, for example, A1 'Rate1' is copied down until it hits A5 'Rate2', then Rate2 is copied down until it hits A7 'Rate3' etc, End result is it starts off looking like table to the left and end up looking like table to the right?
A | B | C | A | B | C | |||
1 | Rate1 | TypeA | Name1 | 1 | Rate1 | TypeA | Name1 | |
2 | Name2 | 2 | Rate1 | TypeA | Name2 | |||
3 | TypeB | Name1 | 3 | Rate1 | TypeB | Name1 | ||
4 | Name2 | 4 | Rate1 | TypeB | Name2 | |||
5 | Rate2 | TypeA | Name1 | 5 | Rate2 | TypeA | Name1 | |
6 | Name2 | 6 | Rate2 | TypeA | Name2 | |||
7 | Rate3 | TypeA | Name1 | 7 | Rate3 | TypeA | Name1 | |
8 | Name2 | 8 | Rate3 | TypeA | Name2 | |||
9 | TypeB | Name1 | 9 | Rate3 | TypeB | Name1 | ||
10 | Name2 | 10 | Rate3 | TypeB | Name2 | |||
11 | Name3 | 11 | Rate3 | TypeB | Name3 | |||
12 | TypeC | Name1 | 12 | Rate3 | TypeC | Name1 | ||
13 | Name2 | 13 | Rate3 | TypeC | Name2 | |||
14 | Rate4 | TypeB | Name1 | 14 | Rate4 | TypeB | Name1 | |
15 | Name2 | 15 | Rate4 | TypeB | Name2 | |||
16 | Name3 | 16 | Rate4 | TypeB | Name3 | |||
17 | Name4 | 17 | Rate4 | TypeB | Name4 | |||
18 | TypeC | Name1 | 18 | Rate4 | TypeC | Name1 | ||
19 | Rate5 | TypeA | Name1 | 19 | Rate5 | TypeA | Name1 | |
20 | Name2 | 20 | Rate5 | TypeA | Name2 |
<COLGROUP><COL style="WIDTH: 22pt; mso-width-source: userset; mso-width-alt: 1060" width=29><COL style="WIDTH: 48pt" span=3 width=64><COL style="WIDTH: 20pt; mso-width-source: userset; mso-width-alt: 950" width=26><COL style="WIDTH: 22pt; mso-width-source: userset; mso-width-alt: 1060" width=29><COL style="WIDTH: 48pt" span=3 width=64><TBODY>
</TBODY>