Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-07-2015, 05:10 PM
dougie1809 dougie1809 is offline How to create hyperlinks within a table in Word 2010? Windows 7 64bit How to create hyperlinks within a table in Word 2010? Office 2010 32bit
Novice
How to create hyperlinks within a table in Word 2010?
 
Join Date: Oct 2015
Posts: 4
dougie1809 is on a distinguished road
Question 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.
Reply With Quote
  #2  
Old 10-07-2015, 07:06 PM
macropod's Avatar
macropod macropod is offline How to create hyperlinks within a table in Word 2010? Windows 7 64bit How to create hyperlinks within a table in Word 2010? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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
Simply select the cells with hyperlinks, then run the macro.

For PC macro installation & usage instructions, see: http://www.gmayor.com/installing_macro.htm
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 10-07-2015, 09:56 PM
markwillium markwillium is offline How to create hyperlinks within a table in Word 2010? Windows XP How to create hyperlinks within a table in Word 2010? Office 2007
Novice
 
Join Date: Aug 2015
Posts: 4
markwillium is on a distinguished road
Default

Look at this solution: http://www.cnet.com/forums/discussio...n-word-257952/
Reply With Quote
  #4  
Old 10-09-2015, 09:56 AM
dougie1809 dougie1809 is offline How to create hyperlinks within a table in Word 2010? Windows 7 64bit How to create hyperlinks within a table in Word 2010? Office 2010 32bit
Novice
How to create hyperlinks within a table in Word 2010?
 
Join Date: Oct 2015
Posts: 4
dougie1809 is on a distinguished road
Question 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.
Attached Files
File Type: docx Table of files.docx (25.0 KB, 11 views)
Reply With Quote
  #5  
Old 10-09-2015, 01:46 PM
macropod's Avatar
macropod macropod is offline How to create hyperlinks within a table in Word 2010? Windows 7 64bit How to create hyperlinks within a table in Word 2010? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #6  
Old 10-11-2015, 08:46 AM
dougie1809 dougie1809 is offline How to create hyperlinks within a table in Word 2010? Windows 7 64bit How to create hyperlinks within a table in Word 2010? Office 2010 32bit
Novice
How to create hyperlinks within a table in Word 2010?
 
Join Date: Oct 2015
Posts: 4
dougie1809 is on a distinguished road
Question

Quote:
Originally Posted by macropod View Post
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.
Thank you for your reply. The cells do not contain the same text, they contain different PDF file names. These cells in the Document column will then need to be created with hyperlinks.

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.
Reply With Quote
  #7  
Old 10-11-2015, 01:20 PM
macropod's Avatar
macropod macropod is offline How to create hyperlinks within a table in Word 2010? Windows 7 64bit How to create hyperlinks within a table in Word 2010? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by dougie1809 View Post
Thank you for your reply. The cells do not contain the same text, they contain different PDF file names.
If you want help solving a problem, you should avoid providing misleading information. While you now say the cells don't contain the same text, the table in your attachment does contain the same text in every cell in column 2.

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]
Reply With Quote
  #8  
Old 10-12-2015, 03:21 AM
dougie1809 dougie1809 is offline How to create hyperlinks within a table in Word 2010? Windows 7 64bit How to create hyperlinks within a table in Word 2010? Office 2010 32bit
Novice
How to create hyperlinks within a table in Word 2010?
 
Join Date: Oct 2015
Posts: 4
dougie1809 is on a distinguished road
Thumbs up

Quote:
Originally Posted by macropod View Post
If you want help solving a problem, you should avoid providing misleading information. While you now say the cells don't contain the same text, the table in your attachment does contain the same text in every cell in column 2.

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
Thank you again for your reply. My mistake for the confusion, I was suppose to say it will be referring to different text per line.

However your macro worked really well. I can now use that as an icon in Word.

Kind regards,

Doug
Reply With Quote
Reply

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

Other Forums: Access Forums

All times are GMT -7. The time now is 11:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft