Anne Troy
MrExcel MVP
- Joined
- Feb 18, 2002
- Messages
- 2,632
- Office Version
- 365
- Platform
- Windows
I want a user to be able to paste email addresses into certain cells, let's say D3, and D5 through D7, and when they do, the email address is pasted, the font is dropped to lower case, and the hyperlink property does NOT exist.
I am already using the following code, so I can alter it for the lowercase portion,
I am already using the following code, so I can alter it for the lowercase portion,
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("C10:D10"), 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)
Application.EnableEvents = True
End If
End If
ErrHandler:
Application.EnableEvents = True
End Sub[code]
and I know how to find code to remove hyperlinks in EXISTING data, but not in new data.
Code I've tried doesn't work. I'm sorry I don't have that code anymore, so I can't show you what didn't work.
Bottom line, can you alter the code above to work for me? Thanks so much in advance!!