Hi Holger,
Sorry for the delayed response getting back; thanks for the help!
I have another worksheet_change event so initially, I ran into compile errors. With a little googling, I was able to get these items working by turning them into Event procedures and my code looks like this:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating = False
Application.EnableEvents = False
EventProc1 Target
EventProc2 Target
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub
Private Sub EventProc1(ByVal Target As Excel.Range)
Const WS_RANGE As String = "A1:R60"
On Error GoTo ErrHandler
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
Target.Formula = UCase(Target.Formula)
End If
ErrHandler:
Application.EnableEvents = True
End Sub
Private Sub EventProc2(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("A12")) Is Nothing Then
Sheets("CT2").Visible = Len(Range("A12")) > 0
End If
End Sub
This works, however, it requires that after I manually insert a value into "A12", I must select the A12 cell in order for the macro to run and sheet "CT2" to become visible. Is there any way for excel to notice I have entered in a value without having to select the cell post data entry?
Bookmarks