Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Change Boarder from VB .net
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Change Boarder from VB .net
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 "Addam" wrote in message ... 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Keep boarder on merged cell while filtering data in another column | Setting up and Configuration of Excel | |||
How do I lock a boarder from being changed or removed? | Excel Discussion (Misc queries) | |||
header and footer boarder line | New Users to Excel | |||
How do I change the thickness of a bottom boarder in Excel 2002? | Excel Discussion (Misc queries) | |||
about algiment text without boarder ? | New Users to Excel |