Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Enable check box in protected sheet + group check boxes | Excel Discussion (Misc queries) | |||
tick box | Excel Discussion (Misc queries) | |||
How can I put a tick/check mark in an Excel spreadsheet? | Excel Discussion (Misc queries) | |||
How do I "tick" a check box | Excel Discussion (Misc queries) | |||
Check/Tick box's and Mandatory cells | Excel Discussion (Misc queries) |