PM_ME_YOUR_DATASETS
New Member
- Joined
- Sep 20, 2017
- Messages
- 8
Hi all,
I've got a series of tables, one on each sheet, that generally look like this:
With "Number" appearing in cell A4.
What I'd like to be able to do is create a macro that conditionally applies a thick border inbetween cells, based on whether the leftmost value in the Level column (B) has changed. For example, I would like a thick border in between 1.9 and 2.3, between 2.8 and 3.0, and between 3.5 and 4.0. That border would extend to the right through the Percent column (C), but not to the left through the Number column (A). When the leftmost value in the Level column doesn't change, I would like to apply a thin border instead, but otherwise keep all existing borders in place.
The (row) length of the tables vary, as do the values.
Can anyone help me out?
I've got a series of tables, one on each sheet, that generally look like this:
Code:
Number Level Percent
1 1.0 2
2 1.0 3
3 1.4 6
4 1.9 5
5 2.3 2
6 2.8 0
8 3.0 8
9 3.5 9
10 4.0 2
With "Number" appearing in cell A4.
What I'd like to be able to do is create a macro that conditionally applies a thick border inbetween cells, based on whether the leftmost value in the Level column (B) has changed. For example, I would like a thick border in between 1.9 and 2.3, between 2.8 and 3.0, and between 3.5 and 4.0. That border would extend to the right through the Percent column (C), but not to the left through the Number column (A). When the leftmost value in the Level column doesn't change, I would like to apply a thin border instead, but otherwise keep all existing borders in place.
The (row) length of the tables vary, as do the values.
Can anyone help me out?