Viewing field codes and hyperlink text

M

Myssie1963

I would like to be able to view the field code (or underlying link) for
hyperlinks in a document, as we are working on mapping our internet to
migrate to a new server. I read the answers here and figured out how to
switch from viewing field codes and hyperlink text, but I would like to see
both, at the same time. Any ideas?
 
M

macropod

Hi Myssie1963,

You can't see both at the time, but toggling the display via Alt-F9 is pretty quick. If you don't like the way that tends to
reformat the whole document for you, you can can select a particular field and toggle it via Shift-F9.
 
M

Myssie1963

Right after I submitted my question, I realized I left an important piece
out. What I want to do is eventually print the page with both the hyperlink
text and field codes visible, which Alt+F9 won't help me do.

If anyone has any ideas, I would greatly appreciate them.

Myssie1963

macropod said:
Hi Myssie1963,

You can't see both at the time, but toggling the display via Alt-F9 is pretty quick. If you don't like the way that tends to
reformat the whole document for you, you can can select a particular field and toggle it via Shift-F9.

--
Cheers
macropod
[Microsoft MVP - Word]


Myssie1963 said:
I would like to be able to view the field code (or underlying link) for
hyperlinks in a document, as we are working on mapping our internet to
migrate to a new server. I read the answers here and figured out how to
switch from viewing field codes and hyperlink text, but I would like to see
both, at the same time. Any ideas?
 
P

Peter Jamieson

1. As far as viewing field codes/results is concerned, the traditional
way to do it is to split your Word display into two panes (you may be
able to do this by pointing to the top of the vertical scrollbar until
you see a pointer icon with two horizontal lines and up and down arrows,
then dragging that downwards. Then use Alt-F9 in one pane to view the
results while you view the field codes in the other.

2. I don't know of a way you can print /both/ (although you can print
/either/ the field codes or their results using the Options in the Print
Dialog (in Word 2007 you'll need to look at the Advanced options to
select the correct option).

3. Perhaps better to
a. make copies of these documents
b. run a macro to insert some documentation for each Hyperlink - for
example, the following inserts some info. about each link in the body of
the document.

Sub DocumentHyperlinks()
Dim cmt As Word.Comment
Dim hyp As Word.Hyperlink
Dim s As String
For Each hyp In ActiveDocument.Hyperlinks
s = ""
AppendDesc s, "Address", hyp.Address
AppendDesc s, "SubAddress", hyp.SubAddress
AppendDesc s, "Display", hyp.TextToDisplay
hyp.Range.Comments.Add Range:=hyp.Range, Text:=s
Next
End Sub

Sub AppendDesc(ByRef s As String, tag As String, info As Variant)
If Len(CStr(info)) > 0 Then
If Len(s) > 0 Then
s = s & vbCrLf & tag & ": " & CStr(info)
Else
s = tag & ": " & CStr(info)
End If
End If
End Sub


Peter Jamieson

http://tips.pjmsn.me.uk
Right after I submitted my question, I realized I left an important piece
out. What I want to do is eventually print the page with both the hyperlink
text and field codes visible, which Alt+F9 won't help me do.

If anyone has any ideas, I would greatly appreciate them.

Myssie1963

macropod said:
Hi Myssie1963,

You can't see both at the time, but toggling the display via Alt-F9 is pretty quick. If you don't like the way that tends to
reformat the whole document for you, you can can select a particular field and toggle it via Shift-F9.

--
Cheers
macropod
[Microsoft MVP - Word]


Myssie1963 said:
I would like to be able to view the field code (or underlying link) for
hyperlinks in a document, as we are working on mapping our internet to
migrate to a new server. I read the answers here and figured out how to
switch from viewing field codes and hyperlink text, but I would like to see
both, at the same time. Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top