lindesswhy
New Member
- Joined
- Jul 29, 2014
- Messages
- 5
this is the code i have so far for converting my "Email" hyperlinks all in column G into the actual email address text.
Sub AAshowHyperlink()
Range("G1").Activate
Do Until IsEmpty(ActiveCell)
If ActiveCell.Hyperlinks.Count <> 0 Then
ActiveCell.Value = Replace(ActiveCell.Hyperlinks.Item(1).Address, "mailto:", "")
End If
ActiveCell.Offset(1, 0).Activate
Loop
End Sub
I would like to know what line I can add to make it so that it skips blank cells in column G. Not everyone in my worksheet has an email listed.
Thanks!
Sub AAshowHyperlink()
Range("G1").Activate
Do Until IsEmpty(ActiveCell)
If ActiveCell.Hyperlinks.Count <> 0 Then
ActiveCell.Value = Replace(ActiveCell.Hyperlinks.Item(1).Address, "mailto:", "")
End If
ActiveCell.Offset(1, 0).Activate
Loop
End Sub
I would like to know what line I can add to make it so that it skips blank cells in column G. Not everyone in my worksheet has an email listed.
Thanks!