View Single Post
 
Old 04-29-2016, 10:32 AM
DanNatCorning DanNatCorning is offline Windows 7 64bit Office 2010 32bit
Novice
 
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