ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Borders (https://www.excelbanter.com/excel-programming/388945-borders.html)

Sandy

Borders
 
I know I can add a border to a cell like this
myCell.BorderAround LineStyle:=xlContinuous, Weight:=xlThin, _
ColorIndex:=xlColorIndexAutomatic

but how do I remove it?

Sandy



Jim Thomlinson

Borders
 
myCell.Borders.LineStyle = xlNone
--
HTH...

Jim Thomlinson


"Sandy" wrote:

I know I can add a border to a cell like this
myCell.BorderAround LineStyle:=xlContinuous, Weight:=xlThin, _
ColorIndex:=xlColorIndexAutomatic

but how do I remove it?

Sandy




Ken

Borders
 
On May 8, 10:01 am, "Sandy" wrote:
I know I can add a border to a cell like this
myCell.BorderAround LineStyle:=xlContinuous, Weight:=xlThin, _
ColorIndex:=xlColorIndexAutomatic

but how do I remove it?

Sandy


Sandy

Try

myCell.BorderAround LineStyle:=xlNone

Ken



Jim Thomlinson

Borders
 
Did you try that code? It didn't work for me...
--
HTH...

Jim Thomlinson


"Ken" wrote:

On May 8, 10:01 am, "Sandy" wrote:
I know I can add a border to a cell like this
myCell.BorderAround LineStyle:=xlContinuous, Weight:=xlThin, _
ColorIndex:=xlColorIndexAutomatic

but how do I remove it?

Sandy


Sandy

Try

myCell.BorderAround LineStyle:=xlNone

Ken




Sandy

Borders
 
It didn't work for me either - which is why I threw it out to you guys. Your
solution however does work Jim - thank you
Sandy

"Jim Thomlinson" wrote in message
...
Did you try that code? It didn't work for me...
--
HTH...

Jim Thomlinson


"Ken" wrote:

On May 8, 10:01 am, "Sandy" wrote:
I know I can add a border to a cell like this
myCell.BorderAround LineStyle:=xlContinuous, Weight:=xlThin, _
ColorIndex:=xlColorIndexAutomatic

but how do I remove it?

Sandy


Sandy

Try

myCell.BorderAround LineStyle:=xlNone

Ken







All times are GMT +1. The time now is 04:01 AM.

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