Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keep boarder on merged cell while filtering data in another column ckc95 Setting up and Configuration of Excel 0 February 2nd 10 09:50 PM
How do I lock a boarder from being changed or removed? Royal Jump Excel Discussion (Misc queries) 1 February 13th 08 03:39 PM
header and footer boarder line Berihu New Users to Excel 1 January 16th 08 12:10 PM
How do I change the thickness of a bottom boarder in Excel 2002? Dawn Excel Discussion (Misc queries) 12 January 14th 05 04:50 PM
about algiment text without boarder ? John Mansfield New Users to Excel 3 December 23rd 04 11:26 AM


All times are GMT +1. The time now is 07:24 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"