ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Concise border removal method (https://www.excelbanter.com/excel-programming/350136-concise-border-removal-method.html)

XP

Concise border removal method
 
Hello, I am using Office 2003 on Windows XP.
I am trying to come up with a concise way of removing all borders from a
range of cells. Something like the following, but this generates an error:

[C6..E10].BorderAround LineStyle:=xlLineStyleNone

I'd really rather not have to individually set every single border to none.
But, is that the only way? Could someone please post an easier method?

Thanks much in advance.

Jim Thomlinson[_5_]

Concise border removal method
 
Range("E6:C10").Borders.LineStyle = xlLineStyleNone
--
HTH...

Jim Thomlinson


"XP" wrote:

Hello, I am using Office 2003 on Windows XP.
I am trying to come up with a concise way of removing all borders from a
range of cells. Something like the following, but this generates an error:

[C6..E10].BorderAround LineStyle:=xlLineStyleNone

I'd really rather not have to individually set every single border to none.
But, is that the only way? Could someone please post an easier method?

Thanks much in advance.



All times are GMT +1. The time now is 02:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com