Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-10-2015, 10:11 PM
JustAboutNoon JustAboutNoon is offline VBA/Macro & Allowing Multiple Hyperlinks Per Character/Word Windows 8 VBA/Macro & Allowing Multiple Hyperlinks Per Character/Word Office 2013
Novice
VBA/Macro & Allowing Multiple Hyperlinks Per Character/Word
 
Join Date: Oct 2014
Posts: 4
JustAboutNoon is on a distinguished road
Lightbulb VBA/Macro & Allowing Multiple Hyperlinks Per Character/Word

I really hope someone can help me figure this out.



Things can easily be turned into hyperlinks in word.

My goal is to be able to set a second hyperlink (reference) destination for each word. So that I can toggle between the two types of links with some hotkey.

So for example: when you click THIS it goes to google. I want to be able to hold shift, and make it so that instead it goes to some other page.

It seems to me that this issue can be broken into two problems/questions:

1) How to store two href values on a single character/word.
2) How to toggle between the default and secondary value.

Any advice or pushes in the right direction would be hugely appreciated.
Reply With Quote
  #2  
Old 04-10-2015, 11:27 PM
Guessed's Avatar
Guessed Guessed is offline VBA/Macro & Allowing Multiple Hyperlinks Per Character/Word Windows 7 32bit VBA/Macro & Allowing Multiple Hyperlinks Per Character/Word Office 2010 32bit
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,969
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I don't think you can do this without a macro. You can use a macrobutton field to run a generic macro and include the modifier key handler in that macro. A macrobutton field means you need to double-click the entry rather than (Ctrl+)Click the hyperlink. You will also need to ensure that macros can run in the file.

Probably the easiest way to manage the the two hyperlink addresses is to bookmark the macrobutton and have the macro marry up the bookmark name with the two path possibilities.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting multiple Word files to PDF retaining hyperlinks jannus Word 4 03-01-2013 04:11 AM
Why does Word separate table and reference endnotes by allowing text to go in between newby2013 Word Tables 2 12-31-2012 03:45 PM
VBA/Macro & Allowing Multiple Hyperlinks Per Character/Word remove multiple hyperlinks jwallace113 Word 5 03-31-2012 05:48 AM
Insert Multiple hyperlinks to word repeated in doc - easily synses Word 8 02-24-2012 05:17 AM
*Word 2007 Macro for Character Count gbartlet Word 0 07-21-2010 11:12 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:12 PM.


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