Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-03-2023, 02:39 AM
syl3786 syl3786 is offline How to use Word Macros to mail merge hyperlinks to the texts in textboxes? Windows 10 How to use Word Macros to mail merge hyperlinks to the texts in textboxes? Office 2019
Advanced Beginner
How to use Word Macros to mail merge hyperlinks to the texts in textboxes?
 
Join Date: Jan 2023
Posts: 78
syl3786 is on a distinguished road
Default How to use Word Macros to mail merge hyperlinks to the texts in textboxes?

Hi Community,

I encounter some difficulties in developing a Word macro that can mail merge hyperlinks from Excel to Word document's textboxes.



For example, there is a textbox with texts "1234" in a Word Document. An Excel file contains 2 columns, column A is the texts need to add hyperlinks, column B is the hyperlinks (URL)

E.g., Cell A2 = 1234; Cell B2 = Google

How to write a macro that can automatically add hyperlinks from Excel to Word textboxes? I tried to find similar Word VBA codes in a lot of posts in different forums related to VBA but in vain.

Your help will be greatly appreciated.
Reply With Quote
  #2  
Old 03-03-2023, 03:52 PM
Guessed's Avatar
Guessed Guessed is offline How to use Word Macros to mail merge hyperlinks to the texts in textboxes? Windows 10 How to use Word Macros to mail merge hyperlinks to the texts in textboxes? Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,991
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

Post sample Word and Excel docs so we can see how you have structured your input docs.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 03-03-2023, 09:42 PM
gmayor's Avatar
gmayor gmayor is offline How to use Word Macros to mail merge hyperlinks to the texts in textboxes? Windows 10 How to use Word Macros to mail merge hyperlinks to the texts in textboxes? Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,106
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

You may find Hyperlink Merge Fields useful.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #4  
Old 03-03-2023, 10:39 PM
syl3786 syl3786 is offline How to use Word Macros to mail merge hyperlinks to the texts in textboxes? Windows 10 How to use Word Macros to mail merge hyperlinks to the texts in textboxes? Office 2019
Advanced Beginner
How to use Word Macros to mail merge hyperlinks to the texts in textboxes?
 
Join Date: Jan 2023
Posts: 78
syl3786 is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
You may find Hyperlink Merge Fields useful.
Thank you gmayor. I tried but the add-ins cannot recognize the text in the textbox.
Reply With Quote
  #5  
Old 03-03-2023, 10:43 PM
syl3786 syl3786 is offline How to use Word Macros to mail merge hyperlinks to the texts in textboxes? Windows 10 How to use Word Macros to mail merge hyperlinks to the texts in textboxes? Office 2019
Advanced Beginner
How to use Word Macros to mail merge hyperlinks to the texts in textboxes?
 
Join Date: Jan 2023
Posts: 78
syl3786 is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
Post sample Word and Excel docs so we can see how you have structured your input docs.
Thanks for your reply. Please see the attached files below:

test.xlsx

test.docx

I would like to find a macro that can automatically add hyperlinks from this excel file to the Word's text in the textbox.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use Word Macros to mail merge hyperlinks to the texts in textboxes? Word Macro: How to automatically add hyperlinks to timestamp texts? loklokpanda Word VBA 0 02-12-2023 09:22 AM
How to use Word Macros to mail merge hyperlinks to the texts in textboxes? Creating Hyperlinks after a Mail Merge jeffreybrown Mail Merge 4 09-19-2017 06:35 PM
How to use Word Macros to mail merge hyperlinks to the texts in textboxes? Hyperlinks in IF...THEN Mail Merge ljg713 Mail Merge 18 12-16-2015 11:35 PM
Batch edit mail merge macros? kbash Word 0 04-30-2014 08:32 AM
Mail merge from Excel to Word and include hyperlinks chay Mail Merge 5 09-28-2013 01:16 AM

Other Forums: Access Forums

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