Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-14-2019, 04:57 AM
taryn taryn is offline Copying text from a cell in the footer and pasting it into a hyperlink address Windows 10 Copying text from a cell in the footer and pasting it into a hyperlink address Office 2016
Novice
Copying text from a cell in the footer and pasting it into a hyperlink address
 
Join Date: Jan 2015
Location: Gibraltar
Posts: 21
taryn is on a distinguished road
Default Copying text from a cell in the footer and pasting it into a hyperlink address

Dear Graham



Thanks for your help. The document, saved as a macro-enabled document, runs the macro automatically upon opening.

I do, however, get an error when the document opens (see attachment) and I am not sure why. If I ignore the error and click on "End", the document opens and the macro has been run correctly. If I click on "Debug" it takes me to the VBA screen and highlights a line in yellow (see attachment). As the macro appears to be working, is there a way to stop the error appearing? Or perhaps incorporate the clicking of "End" into the macro?

By the way, I have slightly amended you macro code to reflect a change in table cell position and text of the target items.

Kind regards.

Taryn
Attached Files
File Type: docx Error upon opening word document.docx (47.6 KB, 10 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying text from a cell in the footer and pasting it into a hyperlink address Copying and Pasting from Other Programs Results in Italicized Text CrossReach Word 3 02-20-2017 02:08 PM
copying and pasting text format paik1002 Excel 2 10-07-2016 02:34 AM
Copying and pasting from Amazon sales to MS Word the text is garbled. voyagerone Word 6 09-08-2015 04:18 PM
Pasting text from Excel cell into word without creating a table, and keeping the in-cell formatting hanvyj Excel Programming 0 08-28-2015 01:15 AM
Copying text from a cell in the footer and pasting it into a hyperlink address Maintain formatting while copying text from word, and pasting into a webpage. kdogg121 Word 1 07-07-2009 02:50 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:47 AM.


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