Change Boarder from VB .net

A

Addam

Anyone,
I am trying to add and bold a border around a cell in Excel. I do not
know how to do this in code. Basically a cell has 4 sides. In vb .net 2003
I want to select the sides. Top, Bottom, left, or right, then I want to add
a solid line bold boarder. the result would be something like this: Assume
top and bottom are always there

| 3 cells | 5 cells | 1 cell |

|___|_____|_|

does anyone know how to do this?

~thanks
addam
 
E

EvolBob

I didn't see any reply to this Addam, but have you tried BorderAround?
MS help files say:

expression.BorderAround(LineStyle, Weight, ColorIndex, Color)

This bit puts a solid, thick, blue border around a selection of cells - not within.

selection.borderaround 1,xlthick, 5

I hope this works for VB.Net


Regards
Robert McCurdy

Anyone,
I am trying to add and bold a border around a cell in Excel. I do not
know how to do this in code. Basically a cell has 4 sides. In vb .net 2003
I want to select the sides. Top, Bottom, left, or right, then I want to add
a solid line bold boarder. the result would be something like this: Assume
top and bottom are always there

| 3 cells | 5 cells | 1 cell |

|___|_____|_|

does anyone know how to do this?

~thanks
addam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top