B
Beth
Subject: Re: Use Cell as Checkbox-2nd Question
From: "Beth" <[email protected]>
Sent: 2/25/2004 6:47:45 AM
Frank,
It works great.
How can I change it so the Vlookup happens whether the
user clicks on the cell or not? Possible?
In response to your question, if both A7 and C7 are
populated, then the conditional formatting turns the row
green and the user knows that record has been resolved. No
action in column K is necessary.
Beth
From: "Beth" <[email protected]>
Sent: 2/25/2004 6:47:45 AM
Frank,
It works great.
How can I change it so the Vlookup happens whether the
user clicks on the cell or not? Possible?
In response to your question, if both A7 and C7 are
populated, then the conditional formatting turns the row
green and the user knows that record has been resolved. No
action in column K is necessary.
Beth
that?-----Original Message-----
Hi Beth
and what happens if both A7 and C7 are not empty?. but for your example
try the following
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
Application.EnableEvents = False
On Error GoTo sub_exit
If Not Intersect(Target, Range("K1:K100")) Is Nothing Then
With Target
If Cells(.row, 1).Value = "" And Cells(.row, 3).Value = ""
Then
If .Value = "" Then
.Value = "X"
Else
.Value = ""
End If
ElseIf Cells(.row, 1).Value <> "" And Cells (.row, 3).Value
= "" Then
.Value = ""
.FormulaR1C1 =
"=VLOOKUP(R2C[0],'lookup'!R7C1:R1000C15,9,FALSE)"
End If
End With
End If
sub_exit:
Application.EnableEvents = True
End Sub
--
Regards
Frank Kabel
Frankfurt, Germany
check column.Thanks. Here's the more detail about the vlookup.... If A7
has a value and C7 doesn't, then go get the matching data
from the Lookup sheet. Otherwise, let the user click to
toggle a tick mark on and off.
=IF(AND($A7<>"",$C7=""),VLOOKUP($B7,Lookup!
$A$7:$O$1000,9,FALSE),"")
So suit),tab, selectclicking
the