Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2006

Tip: Looking for answers? Try searching our database.

Change Boarder from VB .net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Addam - 21 Mar 2006 23:19 GMT
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
EvolBob - 27 Mar 2006 01:02 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.