#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 114
Default Check Box/Tick Box

I acquired this from one of BP's post. Help is required to fine tune the
codes. Thanks.


Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
Const WS_RANGE As String = "E02:E22"

If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
If .Value < "X" Then
..Font.Name = "Arial"
..Value = "X"

Range("B7").Select
ActiveCell.FormulaR1C1 = _

"=IF(ISERROR(VLOOKUP(""X"",R[-2]C[3]:R[15]C[12],10,FALSE)),"""",VLOOKUP(""X"",R[-2]C[3]:R[15]C[12],10,FALSE))"
Range("B7").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Application.CutCopyMode = False
Range("B3").Select
'.Offset(2, -3).FomulaFormat = ""

Else
..Value = ""
'.Offset(0, 1).Value = ""
Range("B7").Select
Selection.ClearContents
Range("B3").Select

End If
End With
End If

End Sub



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
Enable check box in protected sheet + group check boxes Dexxterr Excel Discussion (Misc queries) 4 August 2nd 06 12:00 PM
tick box mango7 Excel Discussion (Misc queries) 2 December 21st 05 01:47 PM
How can I put a tick/check mark in an Excel spreadsheet? Amanda Excel Discussion (Misc queries) 4 July 21st 05 11:37 AM
How do I "tick" a check box Gordie Excel Discussion (Misc queries) 1 May 25th 05 02:12 AM
Check/Tick box's and Mandatory cells Libby Excel Discussion (Misc queries) 2 January 21st 05 01:07 PM


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