|
Visual Basic (VB and VBA) |
|
Copyright 1999-2001 Christopher Greaves. All rights reserved. Home Page and email to [email protected] |
| If in doubt, record a macro and inspect the entrails! |
Please read the DISCLAIMER.
Here is an INDEX to all the procedures.
You will probably need one copy of my GLOBAL DECLARATIONS.
Public Sub udfConvertHyperlinks()
Dim lngStart As Long
lngStart = -1
While lngStart < Selection.Range.Start
lngStart = Selection.Range.Start
Selection.GoTo what:=wdGoToField, Which:=wdGoToNext, Count:=1, Name:="HYPERLINK"
If Len(strAlphaOnly(Selection.Text)) > 0 Then
Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend
Dim strText As String
strText = Selection.Text
Selection.Delete
Selection.TypeText (strText)
Else
Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Delete
Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdMove
End If
Wend
End Sub
| We all knew nothing when we started … |
|
Home Page and Contact Information Send email to [email protected]. This page was last updated Thursday, November 15, 2001 |