Kathleen_0422
Board Regular
- Joined
- May 5, 2011
- Messages
- 64
I am using a worksheet event which will display and image when all required fields have entry:
It appears that the only way to fire the macro is when the user takes focus off the last cell. Is there a way I can have the image display even if the user is on the cell or a cell has been selected in the range as shown
<code>
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If ActiveSheet.Range("F7").Value <> "" And ActiveSheet.Range("F9").Value <> "" And ActiveSheet.Range("F11").Value <> "" And ActiveSheet.Range("F13").Value <> "" And ActiveSheet.Range("F15").Value <> "" And ActiveSheet.Range("F17").Value <> "" And ActiveSheet.Range("F19").Value <> "" And ActiveSheet.Range("F21").Value <> "" Then
Image1.Visible = True
Else
Image1.Visible = False
End If
End Sub
</code>
Column F has validation criteria
It appears that the only way to fire the macro is when the user takes focus off the last cell. Is there a way I can have the image display even if the user is on the cell or a cell has been selected in the range as shown
<code>
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If ActiveSheet.Range("F7").Value <> "" And ActiveSheet.Range("F9").Value <> "" And ActiveSheet.Range("F11").Value <> "" And ActiveSheet.Range("F13").Value <> "" And ActiveSheet.Range("F15").Value <> "" And ActiveSheet.Range("F17").Value <> "" And ActiveSheet.Range("F19").Value <> "" And ActiveSheet.Range("F21").Value <> "" Then
Image1.Visible = True
Else
Image1.Visible = False
End If
End Sub
</code>
Column F has validation criteria