Anne Troy
MrExcel MVP
- Joined
- Feb 18, 2002
- Messages
- 2,632
- Office Version
- 365
- Platform
- Windows
Here's my code
When I enter an email addy into one of those cells, and hit Enter or Tab, it's beautiful. But I am now missing some of my border. So, fine. I put borders on the top and right of cell D3, and that resolves it for D3, but not for D4, D5... you get me. How can I either figure out why it's doing this or put the borders back on?
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then
Exit Sub
End If
On Error GoTo ErrHandler:
If Not Application.Intersect(Me.Range("D3:D6"), Target) Is Nothing Then
If IsNumeric(Target.Value) = False Then
Application.EnableEvents = False
'Target.Value = StrConv(Target.Text, vbLowerCase)
'Target.Value = StrConv(Target.Text, vbUpperCase)
'Target.Value = StrConv(Target.Text, vbProperCase)
With Target
.Value = StrConv(Target.Text, vbLowerCase)
.Hyperlinks.Delete
.HorizontalAlignment = xlCenter
End With
Application.EnableEvents = True
End If
End If
ErrHandler:
Application.EnableEvents = True
End Sub
When I enter an email addy into one of those cells, and hit Enter or Tab, it's beautiful. But I am now missing some of my border. So, fine. I put borders on the top and right of cell D3, and that resolves it for D3, but not for D4, D5... you get me. How can I either figure out why it's doing this or put the borders back on?