LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 586
Default Error with Borders of a Range


I am trying to draw borders around the columns in the ranges below. For some
reason I am getting an Error indicated below: "Unable to set the weight
property of the Border Class". This makes no sense to me because the code
before it works fine but it keeps getting hung up on the line indicated
below. Any ideas?

' adds border to quote sheet and product information
With .Range("B" & ActiveCell.Row, "H" & ActiveCell.Row + 28)
.Borders(xlEdgeTop).Weight = xlThin
.Borders(xlEdgeBottom).Weight = xlThin
.Borders(xlEdgeLeft).Weight = xlThin
.Borders(xlEdgeRight).Weight = xlThin
End With

With .Range("C" & ActiveCell.Row, "G" & ActiveCell.Row + 28)
.Borders(xlEdgeLeft).Weight = xlThin
ERROR .Borders(xlEdgeRight).Weight = xlThin
End With

With .Range("F" & ActiveCell.Row, "F" & ActiveCell.Row + 28)
.Borders(xlEdgeLeft).Weight = xlThin
.Borders(xlEdgeRight).Weight = xlThin
End With
--
Cheers,
Ryan
 
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
Remove borders in range Karen53 Excel Programming 2 April 10th 08 10:26 PM
Borders for range Neil Pearce Excel Discussion (Misc queries) 0 April 8th 08 11:58 AM
Borders Error Karen53 Excel Programming 10 March 31st 08 05:53 AM
Bug applying Borders to Range Bart[_6_] Excel Programming 1 January 4th 08 03:26 PM
Remove all borders from a range quartz[_2_] Excel Programming 4 September 20th 05 02:16 AM


All times are GMT +1. The time now is 10:34 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"