Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
icecool2 icecool2 is offline
Junior Member
 
Posts: 0
Default

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
Then I added a field to the document to run that macro.

Code:
{MACROBUTTON SelectTextBetweenBookMarks Click to Copy to Clipboard}
The field shows the "Click to..." text and when the user clicks on it while the form is protected, the text is copied to the clipboard and the formatting is preserved.
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fillable Form Christine New Users 1 June 4th 10 01:21 AM
Fillable Form KMK56 Microsoft Word Help 1 September 22nd 09 01:23 PM
How to create fillable form where form is unaltered by input.. nittany21 Page Layout 1 November 21st 08 08:31 PM
Fillable Form ub Microsoft Word Help 1 February 26th 07 07:46 PM
copy text entered in a form to other location on a form Huskydutchboy Microsoft Word Help 4 July 27th 05 12:32 AM


All times are GMT +1. The time now is 10:21 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"