Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-01-2017, 05:41 AM
MagicMan MagicMan is offline Creating Standard Word document using excel source(s) Windows 7 64bit Creating Standard Word document using excel source(s) Office 2013
Novice
Creating Standard Word document using excel source(s)
 
Join Date: Dec 2017
Posts: 1
MagicMan is on a distinguished road
Default Creating Standard Word document using excel source(s)

Hi Folks,

I've been a member of the excelforum for many years and am quite comfortable with excel Macros. However, I'm trying to learn Word Macros as I think this will take me to another level.

THE CHALLENGE

I'm trying to create a standardised report that will use data from 1 or several excel sources. The source data location will be the same from each workbook.

Ideally, I'd open a template and, through a navigation window, select the data sources, and it would generate the report ready for the user to edit as required.

At the end of the process the user will only be able to 'Save As' with a suggested filename e.g. "Project Name - SnapShot Review.doc"

I've attempted to mock up the output that I'd like to achieve (with various comments re source files etc.)

Where I have mentioned "Standard Paragraphs" these can be included in the template. It's only the variables that are sourced from the excel workbooks.

If some of the requirements (e.g. sorting the table) cannot be achieved, that's fine.

If someone's able to do this for me, I'd be extremely grateful if they could also comment the code so I can understand what's happening within each element. (Hopefully, that'll save me having to keep coming back and, if I get good enough, help others).

Many thanks for your time and please don't hesitate to get in touch if you need clarification.

Kindest Regards,

Terry (MagicMan)
Attached Files
File Type: docx Snapshot view mock up.docx (84.6 KB, 13 views)
Reply With Quote
  #2  
Old 12-01-2017, 05:06 PM
macropod's Avatar
macropod macropod is offline Creating Standard Word document using excel source(s) Windows 7 64bit Creating Standard Word document using excel source(s) Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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

Since it appears it's only the link paths that vary, you could adapt the macro attached to https://www.msofficeforums.com/word/...nal-files.html. I suspect the adaptation required would be little more than inserting the macro into the template your documents are created from (rather than into the documents themselves) and changing its name, so it doesn't run automatically when those documents are opened.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Standard Word document using excel source(s) Creating a letter in Word, with text pulled from an Excel document based on selections in a userform TMAL Word VBA 6 12-15-2017 02:16 PM
Excel spreadsheet as a data source stored within a word document slaycock Word VBA 0 03-19-2017 11:36 AM
Single step Word Styles from Source Document through entire Destination document? xbliss Word 6 08-27-2016 09:36 PM
Creating Standard Word document using excel source(s) Update source for multiple links to excel document JDHeisenberg Word VBA 1 08-19-2016 04:23 PM
Creating a table in one document of WORD from EXCEL with Mail Merge Joseph.Comerford@bentley. Mail Merge 1 04-18-2015 01:19 AM

Other Forums: Access Forums

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