Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Allow Copy of Text from Fillable Form
Hello!
I have a fillable form that helps me properly format report entries. There are very specific spacing, formatting and placement rules for the report (don't ask, it's a pain!) The form works great and it generates exactly the right output at the end. The problem is.... how do I get that beautiful text out of the form so I can put it in my report? I don't want to have to protect and unprotect the document each time. That defeats the purpose and I'm going to share this with my coworkers. Right now, the text is created using fields and is assembled at the bottom of the page. I'm trying to avoid using VBA to make a copy button, if possible. Is there a better way to do this? |
#2
|
|||
|
|||
It seems like a macro may be appropriate here, but I can't find much documentation on the field macros. I see one called "CopyText", but I don't know how to use it.
|
#3
|
|||
|
|||
I came up with a solution. I'll share it here in case anyone else needs this in the future. The simplest way I could come up with was to write a custom macro.
First, I put two bookmarks in the document. One called "start" above the text I want to copy and one called "end" below the text I want to copy. The code for the macro then is: Code:
Sub SelectTextBetweenBookmarks() ActiveDocument.Range( _ ActiveDocument.Bookmarks("start").Range.Start, _ ActiveDocument.Bookmarks("end").Range.Start) _ .Select Selection.Copy End Sub Code:
{MACROBUTTON SelectTextBetweenBookMarks Click to Copy to Clipboard} |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Fillable Form | New Users | |||
Fillable Form | Microsoft Word Help | |||
How to create fillable form where form is unaltered by input.. | Page Layout | |||
Fillable Form | Microsoft Word Help | |||
copy text entered in a form to other location on a form | Microsoft Word Help |