Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-03-2023, 01:17 PM
ChristianG ChristianG is offline Add hyperlinks to headlines Windows 10 Add hyperlinks to headlines Office 2019
Novice
Add hyperlinks to headlines
 
Join Date: Feb 2023
Posts: 2
ChristianG is on a distinguished road
Default Add hyperlinks to headlines

Hi,


I provide a document with several (<>100) keywords, each described by a short paragraph. The keywords are formated as "heading2" and consist of one word each, for example "Janitor".


I need a piece of VBA that searches for the headlines in the complete document and adds a hyperlink to the matching headline.

As I usually use VBA only with Access and have never used it in Word, I need some help.



In the end, the document will be exported as PDF for distribution.


I hope you can give me a hint.


Cheers and thanks



Christian
Reply With Quote
  #2  
Old 02-03-2023, 07:58 PM
BrianHoard BrianHoard is offline Add hyperlinks to headlines Windows 10 Add hyperlinks to headlines Office 2019
Advanced Beginner
 
Join Date: Jul 2022
Location: Haymarket, VA USA
Posts: 85
BrianHoard is on a distinguished road
Default

Sounds simple enough. Can you provide a Word document that has a couple of these keywords you're talking about, with the finished hyperlink? If you can do a couple examples manually, that will help us understand exactly what you mean.
Reply With Quote
  #3  
Old 02-03-2023, 10:31 PM
ChristianG ChristianG is offline Add hyperlinks to headlines Windows 10 Add hyperlinks to headlines Office 2019
Novice
Add hyperlinks to headlines
 
Join Date: Feb 2023
Posts: 2
ChristianG is on a distinguished road
Default

Hi BrianHoard,



I've prepared a short example. The original document is way longer and therefore it would be a nightmare to do this manually.

The text paragraph of each keyword should be searched for the other keywords and if found, a hyperlink to the corresponding headline should be generated.



Thank you for your support


Christian
Attached Files
File Type: docx Example-Doc.docx (12.9 KB, 4 views)
Reply With Quote
Reply

Tags
hyperlink headline vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Re-ordering pages in a text-doc according to the headlines of the page stoobz Word 5 09-02-2022 12:24 AM
Creating headlines(Being provided between the two codes) bnyamin Word VBA 0 06-17-2017 08:39 AM
Creating headlines(Being provided between the two codes) bnyamin Word VBA 1 05-15-2017 04:47 PM
Add hyperlinks to headlines How do i sort a document with many different headlines? shahar Word 1 04-30-2017 06:15 AM
Add hyperlinks to headlines Numbering hierarchy in different levels of headlines jaybo Word 4 01-18-2011 12:42 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:18 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