#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.programming
Ken Ken is offline
external usenet poster
 
Posts: 207
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default 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



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default 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





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default 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





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
Borders Khanjohn Excel Programming 3 April 23rd 07 03:16 PM
borders wdm0970 Excel Discussion (Misc queries) 1 September 26th 06 09:31 PM
borders jobra Excel Programming 4 August 30th 05 10:55 AM
Borders Alan Excel Programming 3 November 10th 04 06:40 PM
Help with borders Ed[_10_] Excel Programming 0 July 23rd 03 08:07 PM


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