![]() |
|
|
|
#1
|
||||
|
||||
|
Quote:
Hopefully, you have now correctly stated your requirements, for which you could use a macro like: Code:
Sub Demo()
Dim Rng As Range, TblCell As Cell, StrTxt As String
With Selection
If .Information(wdWithInTable) = False Then Exit Sub
For Each TblCell In .Cells
Set Rng = TblCell.Range
With Rng
.End = .End - 1
StrTxt = .Text
.Text = ""
End With
ActiveDocument.Hyperlinks.Add Anchor:=Rng, _
Address:="Address", SubAddress:="SubAddress", _
ScreenTip:="", TextToDisplay:=StrTxt, Target:="_blank"
Next
End With
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#2
|
|||
|
|||
|
Quote:
However your macro worked really well. I can now use that as an icon in Word. Kind regards, Doug |
|
| Tags |
| hyperlink, marco, table border, word 2010 |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MS Word 2010 Master Document - hyperlinks not working within subdocuments | Daedalus | Word | 2 | 04-17-2015 08:45 AM |
| Word 2010 changes hyperlinks format | Jeepster | Word | 5 | 03-16-2013 04:41 PM |
| Hyperlinks blocked in Word 2010 | spirit777 | Word | 1 | 10-15-2011 05:56 AM |
| Create Hyperlinks from Word to specific location in PDF | sukanyae | Word | 0 | 02-25-2010 04:08 PM |
| Word with frames, table of contents, and hyperlinks to html | NHMC | Word | 0 | 12-09-2009 12:54 PM |