PC Review


Reply
Thread Tools Rate Thread

Bug applying Borders to Range

 
 
Bart
Guest
Posts: n/a
 
      4th Jan 2008
Who can explain me the following problem with applying borders to
cells?
The Border property window for cells looks incomplete to me or at
least is very inconvenient.
Borders 'belong' to cells. You can experiment with this by moving
cells around bordering cells with Borders.

The best way to show this problem is by example:
Cell A1 has a Bottom Border. The range A2:A3 is selected.
Now, the Border Property window is showing a Top Border for this
range. I think that's incorrect. It should be, I think, at least a
GRAY Top Border, meaning that there is a Border, but not 'belonging'
to the selected range.
It even becomes more bizarre when at this point a Bottom Border, for
example, is added. By applying this, the Bottom Border of A1 becomes
also a 'belonging' of cell A2 as a Top Border.

I'm using Excel 2003 SP2. Has this Border property window been
replaced in the 2007 version?

Regards and good luck,

Bart
 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      4th Jan 2008
It's all there, ie if there is a border and if it belongs to the cell. Look
at border items 1 to 4 or (strangely) with the other xl side constants, eg

Sub test3()
Dim cel As Range

For Each cel In Selection
With cel.Borders
Debug.Print .Item(xlEdgeLeft).LineStyle, .Item(xlLeft).LineStyle
Debug.Print .Item(xlEdgeTop).LineStyle, .Item(xlTop).LineStyle
Debug.Print .Item(xlEdgeBottom).LineStyle, .Item(xlBottom).LineStyle
Debug.Print .Item(xlEdgeRight).LineStyle, .Item(xlRight).LineStyle
End With
Debug.Print
Next
End Sub

Irritatingly there is no constant number difference between pairs, for
convenience border items -

7, 8 , 9 , 10
1, 3, 4, 2

As for the dialog, I agree it could and possibly should be possible to
convey to user which cell a border belongs to, OTH it would probably
unnecessarily confuse for most purposes. It's not particularly the fact that
yopu applied some other border in the dialog that went on to assign the
'neighbour's border to self, but the fact some change was made in the dialog
and then pressed OK.

Regards,
Peter T



"Bart" <(E-Mail Removed)> wrote in message
news:63c34911-e6cd-423c-8310-(E-Mail Removed)...
> Who can explain me the following problem with applying borders to
> cells?
> The Border property window for cells looks incomplete to me or at
> least is very inconvenient.
> Borders 'belong' to cells. You can experiment with this by moving
> cells around bordering cells with Borders.
>
> The best way to show this problem is by example:
> Cell A1 has a Bottom Border. The range A2:A3 is selected.
> Now, the Border Property window is showing a Top Border for this
> range. I think that's incorrect. It should be, I think, at least a
> GRAY Top Border, meaning that there is a Border, but not 'belonging'
> to the selected range.
> It even becomes more bizarre when at this point a Bottom Border, for
> example, is added. By applying this, the Bottom Border of A1 becomes
> also a 'belonging' of cell A2 as a Top Border.
>
> I'm using Excel 2003 SP2. Has this Border property window been
> replaced in the 2007 version?
>
> Regards and good luck,
>
> Bart



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Borders for range Neil Pearce Microsoft Excel Misc 0 8th Apr 2008 11:58 AM
Applying partial borders to text not to paragraph =?Utf-8?B?U2FyYWggTW9ucm9l?= Microsoft Word Document Management 6 15th May 2006 04:23 PM
applying borders to cells using keyboard shortcuts in excel =?Utf-8?B?SmVycnk=?= Microsoft Excel Misc 2 27th Mar 2006 07:48 AM
Remove all borders from a range =?Utf-8?B?cXVhcnR6?= Microsoft Excel Programming 4 20th Sep 2005 02:16 AM
Trouble applying borders in Excel CGB Microsoft Excel Discussion 7 10th Jan 2005 05:21 AM


Features
 

Advertising
 

Newsgroups
 


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