Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jc jc is offline
external usenet poster
 
Posts: 164
Default Problem setting BorderArround LineStyle:=xlLineStyleNone

When running the following code:
Selection.BorderAround LineStyle:=xlDouble
Selection.BorderAround LineStyle:=xlLineStyleNone
the first line sets the border around the selection to xlDouble
the second line does nothing
VB help says:

"To clear the border, you must set the LineStyle property to xlLineStyleNone
for all the cells in the range."

Am I doing something wrong or is there a problem with EXCEL 2003.

I know that I can set the individual borders (left, right, top, bottom) the
problem that this causes for me is that when you do this it overrides the
border on the neighboring cell: ie setting the right border overrides the
left border on the cell to the right.
JC
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Problem setting BorderArround LineStyle:=xlLineStyleNone

Don't ask me why because I have no idea, but this syntax works for deleting
the borders.

Selection.Borders.LineStyle = xlLineStyleNone



"jc" wrote:

When running the following code:
Selection.BorderAround LineStyle:=xlDouble
Selection.BorderAround LineStyle:=xlLineStyleNone
the first line sets the border around the selection to xlDouble
the second line does nothing
VB help says:

"To clear the border, you must set the LineStyle property to xlLineStyleNone
for all the cells in the range."

Am I doing something wrong or is there a problem with EXCEL 2003.

I know that I can set the individual borders (left, right, top, bottom) the
problem that this causes for me is that when you do this it overrides the
border on the neighboring cell: ie setting the right border overrides the
left border on the cell to the right.
JC

  #3   Report Post  
Posted to microsoft.public.excel.programming
jc jc is offline
external usenet poster
 
Posts: 164
Default Problem setting BorderArround LineStyle:=xlLineStyleNone

You have more wisdom than I do.

Thank You
--
JC


"JLGWhiz" wrote:

Don't ask me why because I have no idea, but this syntax works for deleting
the borders.

Selection.Borders.LineStyle = xlLineStyleNone



"jc" wrote:

When running the following code:
Selection.BorderAround LineStyle:=xlDouble
Selection.BorderAround LineStyle:=xlLineStyleNone
the first line sets the border around the selection to xlDouble
the second line does nothing
VB help says:

"To clear the border, you must set the LineStyle property to xlLineStyleNone
for all the cells in the range."

Am I doing something wrong or is there a problem with EXCEL 2003.

I know that I can set the individual borders (left, right, top, bottom) the
problem that this causes for me is that when you do this it overrides the
border on the neighboring cell: ie setting the right border overrides the
left border on the cell to the right.
JC

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Problem setting BorderArround LineStyle:=xlLineStyleNone

Apparently the Design Engineers had problems separating the borders of
individual cells, because the left wall of one is the right wall of another
and the bottom of one is the top of another. The borders are just line
segments along those invisible walls and the walls a just long lines of
pixels that turn dark or different colors at points specified when the user
desinates a cell parameter. Easy enough to control if working with pieces
inside the range but difficult when trying to isolate the enclosure of the
range as an entity. By now you have guessed that I have not a clue what I
am talking about.

"jc" wrote:

When running the following code:
Selection.BorderAround LineStyle:=xlDouble
Selection.BorderAround LineStyle:=xlLineStyleNone
the first line sets the border around the selection to xlDouble
the second line does nothing
VB help says:

"To clear the border, you must set the LineStyle property to xlLineStyleNone
for all the cells in the range."

Am I doing something wrong or is there a problem with EXCEL 2003.

I know that I can set the individual borders (left, right, top, bottom) the
problem that this causes for me is that when you do this it overrides the
border on the neighboring cell: ie setting the right border overrides the
left border on the cell to the right.
JC

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
Dotted Linestyle is not seen in Print of the excel PariDhillon Excel Discussion (Misc queries) 1 April 25th 08 01:43 PM
Error LineStyle John Ciccone Excel Programming 2 November 22nd 07 01:44 PM
Error LineStyle property of Border Class NevilleT Excel Programming 2 November 1st 07 11:28 AM
What is fastest? "If .LineStyle < xlContinuous ..." or ".LineStyle = xlContinuous" ?? tskogstrom Excel Programming 12 April 16th 07 10:08 AM
Range.BorderAround(xlLineStyleNone) John A Grandy Excel Programming 8 July 27th 03 05:32 PM


All times are GMT +1. The time now is 11:43 PM.

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

About Us

"It's about Microsoft Excel"