Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Add or Delete borders of a cell by clicking on that cell

If double click will do try the below. Select the sheet tab which you want to
work with. Right click the sheet tab and click on 'View Code'. This will
launch VBE. Paste the below code to the right blank portion. Get back to to
workbook and try out.


Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, _
Cancel As Boolean)
If Target.Borders.Value = 1 Then
Target.Borders.LineStyle = xlLineStyleNone
Else
Target.BorderAround ColorIndex:=3, Weight:=xlThick
End If
Cancel = True
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Happy Proby" wrote:

I have a form that one must manually "circle" either "YES' OR "NO" each in
thier own cell. doesnot need to be a circle but could be a colored square
border.
Can anyone help?
Thanks
Happy Proby

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
How do I edit a cell in Excel without clicking on the cell first? Alisa Excel Worksheet Functions 5 April 2nd 07 07:15 PM
Can I toggle the value of a cell by clicking directly on the cell? steve-o Excel Discussion (Misc queries) 3 July 17th 06 09:47 PM
When double clicking on link in cell it doesn't go the cell. Brian Excel Discussion (Misc queries) 1 July 17th 06 05:11 PM
How do I delete cell borders? scoostraw Excel Discussion (Misc queries) 4 April 19th 06 03:30 PM
Why data in cell doesn't stay aligned with cell borders when prin. Danno Excel Discussion (Misc queries) 0 October 3rd 05 07:15 PM


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