#1
|
|||
|
|||
How to create hyperlinks within a table in Word 2010?
Hi,
I know how to create standard hyperlinks in Word, however I cannot seem to enable adding hyperlinks for a particular column within a table. I do not want enable every row manually, so I would like to quickly enable all rows with hyperlinks (which may involve over 40-60 rows). It should be just one hyperlink (E.g. www.google.com). Thank you. |
#2
|
||||
|
||||
How are you adding the would-be hyperlinks to the table? Ordinarily, just pressing <Enter>, <Tab> or <Space> is enough to turn hyperlink text you've just typed into a working hyperlink.
For existing content, you could use a macro like: Code:
Sub Demo() Selection.Range.AutoFormat End Sub For PC macro installation & usage instructions, see: http://www.gmayor.com/installing_macro.htm
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Look at this solution: http://www.cnet.com/forums/discussio...n-word-257952/
|
#4
|
|||
|
|||
How to create a macro for hyperlinks
Hi,
I am trying to enable hyperlinks for a particular column within a table in Word 2010. I have attached a Word file which has a column called Documents. Is there a way to add a macro to enable changing PDF file names within the column to hyperlinks? (It does not matter where the links point to, as I will be doing manually in Adobe Pro). Just to note, these links will be temporary until I convert the document itself to PDF, which is a lot easier to have links ready to be edited. The table is just a template, which will change in the number of rows (from 40-60+ rows). The Document column's entries need to stay the same, but simply converted to hyperlinks. Thank you. |
#5
|
||||
|
||||
You don't really need a macro for this. Since all the cells you want to convert contain the same text and the hyperlink target is unimportant, all you need do is convert one, then copy that to all the remaining rows. To convert any row's text to a hyperlink:
• select the text • choose Insert|Hyperlink and choose any file you have for a nominal target. Done.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#6
|
|||
|
|||
Quote:
Converting a piece of text is not the issue, its converting the entire column of cells (within the Document column). There is no real way to highlight all cells in the column and then right click > Hyperlink (or equivalent). Do you see y problem? Thank you again. |
#7
|
||||
|
||||
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] |
#8
|
|||
|
|||
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 |
Thread Tools | |
Display Modes | |
|
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 |