Matador_24
Board Regular
- Joined
- Dec 1, 2011
- Messages
- 205
Hello,
How can select a range of cells and apply a format to it using VBA?
For instance, let's say I want to take range B12 to D12 and remove all borders it has and then apply the border only to the top and bottom of the cell?
In the code, I need to specify that the row is a variable. My columns are always the same however the row is always different, thus, when I determine the range, I need to consider that the row will be a variable, for instance in my example above:
Lastrow = 12
Thanks!
Luis
How can select a range of cells and apply a format to it using VBA?
For instance, let's say I want to take range B12 to D12 and remove all borders it has and then apply the border only to the top and bottom of the cell?
In the code, I need to specify that the row is a variable. My columns are always the same however the row is always different, thus, when I determine the range, I need to consider that the row will be a variable, for instance in my example above:
Lastrow = 12
Thanks!
Luis