Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-24-2021, 01:46 AM
nytvsh nytvsh is offline Inserting Values from a table to text lines within the same document Windows 10 Inserting Values from a table to text lines within the same document Office 2016
Novice
Inserting Values from a table to text lines within the same document
 
Join Date: Jan 2021
Posts: 6
nytvsh is on a distinguished road
Exclamation Inserting Values from a table to text lines within the same document


Hello!
I'm currently working on a template for a survey report. The first page will contain general information about the survey (port of discharge, port of arrival, departure and arrival dates etc.) which will be repeated throughout the text in the report. I have already created the general body of the text. I now wish to have the values added in the table to be populated within the text as the table is being filled.

For example:

If the General Information table contains
Port of Loading : Chile [port1]
Port of Discharge : Singapore [port2]
Discharge date: 21/01/2021 [date]

then I'd like the values "Chile" and "Singapore" to be populated in the below text as I fill the General Info table:

"...which had been transported from the port of [port1] to [port2] and discharged on [date]"

Now, I don't know VBA programming, but I'm willing to learn to get this to work because it would greatly ease my workload and I can ensure uniform accuracy within my reports. If there are any easier methods to go about this, please do let me know!

Thank you!
Reply With Quote
  #2  
Old 01-24-2021, 02:01 PM
macropod's Avatar
macropod macropod is offline Inserting Values from a table to text lines within the same document Windows 10 Inserting Values from a table to text lines within the same document Office 2016
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

See: Repeating Data (Populating Multiple Like Fields)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 01-24-2021, 02:29 PM
Charles Kenyon Charles Kenyon is online now Inserting Values from a table to text lines within the same document Windows 10 Inserting Values from a table to text lines within the same document Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Take a look at Repeating Data Using Document Property Content Controls and Other Mapped Content Controls. It expands on one of the ideas on Greg's page.
Reply With Quote
  #4  
Old 01-25-2021, 12:57 AM
nytvsh nytvsh is offline Inserting Values from a table to text lines within the same document Windows 10 Inserting Values from a table to text lines within the same document Office 2016
Novice
Inserting Values from a table to text lines within the same document
 
Join Date: Jan 2021
Posts: 6
nytvsh is on a distinguished road
Default

Thank you, everyone, that was quick! I'll have a look at them and get back to you with results


EDIT: This seems to be working beautifully so far, thank you! I'll get back to you folks in case I run into anything complicated.


I'd never thought of being a Power User in MS Office, but now that it can be used to ease my paperwork and free up time for more productive pursuits, this is a fascinating skill to master

Last edited by nytvsh; 01-25-2021 at 06:42 AM. Reason: Results
Reply With Quote
Reply

Tags
table, text, values

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting Values from a table to text lines within the same document Inserting a Merged Row after a certain text is found in a table Snaybot Word VBA 13 09-30-2015 03:12 PM
Inserting Values from a table to text lines within the same document inserting wordwrap table causes paragraph break in text sodiumkpump Word Tables 1 08-05-2015 06:36 PM
How to create a pivot table with text as values ljd108 Excel Programming 0 01-22-2015 07:48 PM
Inserting Images into a Table Cell without Moving the Text suzan Word 0 06-27-2014 05:20 AM
Inserting Values from a table to text lines within the same document Inserting landscape Table into Portrait Document sstark Word Tables 2 02-13-2013 08:43 AM

Other Forums: Access Forums

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