Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-29-2016, 10:32 AM
DanNatCorning DanNatCorning is offline Name a Range in a Word Document and then copy that range to the end of the doc w button click Windows 7 64bit Name a Range in a Word Document and then copy that range to the end of the doc w button click Office 2010 32bit
Novice
Name a Range in a Word Document and then copy that range to the end of the doc w button click
 
Join Date: Apr 2016
Posts: 1
DanNatCorning is on a distinguished road
Default Name a Range in a Word Document and then copy that range to the end of the doc w button click

Forgive me for being a NEWBIE, but I could really use some help. I am quite proficient with Excel VBA, but doing anything with VBA in Word is totally new to me. I have a document my admin wants to use as a template. There are two sections of the document (Key Highlights and Comprehensive) that she would like to create copies of any time a user clicks on the "add Key Highlight" or "add Comprehensive" buttons. The two sections are identical. They each contain 5 lines. The first two lines (shown as Choose an Item) are drop-down lists that the user will choose from. and then the remaining 3 lines are just text.

As easy as it is to just select the range and do <ctl>C and <ctl>V, she would like to achieve the same result by clicking on a button, and having the code insert the new copy of the five lines at the end of whichever section the user is in. If I Add a Highlight, add it to the bottom of the highlight section, just before the Comprehensive section starts. If I add a comprehensive, add it to the bottom of the Comprehensive section, just before Documentation.

Is this making any sense at all? If anyone could help, I'd be happy to send you the document so you can see what I'm describing. I could REALLY use some help on this one.
Attached Images
File Type: jpg Period Report Screen Capture.jpg (68.3 KB, 18 views)
Reply With Quote
  #2  
Old 04-29-2016, 10:47 PM
macropod's Avatar
macropod macropod is offline Name a Range in a Word Document and then copy that range to the end of the doc w button click Windows 7 64bit Name a Range in a Word Document and then copy that range to the end of the doc w button click Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

You could create some custom building blocks that could be inserted on demand, via Insert|QuickParts. No code required. See:
https://support.office.com/en-us/art...C-98599F16CADC

http://gregmaxey.com/word_tip_pages/...galleries.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Name a Range in a Word Document and then copy that range to the end of the doc w button click How to Import range between two string from other document PRA007 Word VBA 1 12-18-2015 09:23 PM
Name a Range in a Word Document and then copy that range to the end of the doc w button click Set Excel Range using Word gbrew584 Word VBA 3 12-07-2015 01:51 PM
VBA macro to copy range and paste in next blank row tune2grow Excel Programming 0 09-03-2014 08:25 PM
Name a Range in a Word Document and then copy that range to the end of the doc w button click copy a range including shapes Marcus Excel Programming 8 08-17-2012 01:50 AM
Loop through folder of workbooks and copy range to other workbook Snvlsfoal Excel Programming 3 07-29-2011 05:55 AM

Other Forums: Access Forums

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