#1
|
|||
|
|||
Locking a text box
I'm looking at a way to lock a text box on a word template so it does not resize when over typing it, but also cannot be moved or resized by anyone.
It basically to have an address field on a letter that needs to be in an exact position, but is manually typed in, and want to mitigate any risk of someone moving or resizing it. I have search for this, but cannot find a definitive answer. Thanks... |
#2
|
|||
|
|||
You could use a Frame instead of a Text Box. Frames can be set for particular fixed locations on the page.
Frames and Textboxes in Microsoft Word You could use Content Controls instead of a Text Box. Create a Form Using Word Content Controls by Greg Maxey Use Plain Text Content Controls set to not accept a carriage return and surrounded by a Group Content Control. See also Setting Up Letter Templates - Ribbon by Suzanne Barnhill, MVP. |
#3
|
|||
|
|||
more reading. more learning.
Nice that the Format Text Box has an option to Convert to Frame... |
#4
|
|||
|
|||
Quote:
The convert to frame command left Word when shapes replaced textboxes as containers (with the ability to rotate shapes and text contained in them). I think that was in Word 2010. You can get the command back by converting your document to Word 2007 format or before. This is mentioned in the **** footnote to the comparison table on my page. |
#5
|
|||
|
|||
Quote:
|
#6
|
|||
|
|||
I'm glad it is working for you. I suspect your document is in Compatibility Mode.
My right-click menu gives Format Shape which does not have Format Text Box. If I set my document for Word 2007 Compatibility Mode, then I see the Format AutoShape/Picture command and can get to the Convert to Frame button. Here is a macro that changes a document to Word 2007 compatibility mode: Code:
Sub Word2007CompatibilityOn() ' ' Word2007CompatibilityOn Macro ' ' Charles Kenyon ' Written for WordArt Add-In ' Converts Active Document to Word 2007 format Dim Result As Long Result = MsgBox(Prompt:="This will convert this document to Word 2007 format. You will lose any features added in later versions." & _ vbCr & "Are you sure?", title:="Word 2007 Conversion Warning", Buttons:=vbInformation + vbYesNo) On Error GoTo SkipConversion ' in case this is run in an earlier version of Word If Result = vbNo Then GoTo SkipConversion ActiveDocument.SetCompatibilityMode (wdWord2007) MsgBox "Conversion completed. If you are using Word 2010 or later, you should see Compatibility Mode in the Title Bar.", vbInformation, "Done" On Error GoTo -1 Exit Sub SkipConversion: MsgBox "Conversion skipped", vbInformation, "OK" On Error GoTo -1 End Sub ' ========================================================================== Private Sub TitlebarShow() MsgBox ActiveDocument.ActiveWindow.Caption End Sub |
#7
|
|||
|
|||
a bit.
Not my personnel machine but an Enterprise machine with Domain and a MS365 Subscription. Apparently the Normal.dotx is old (Methuselah version?) and starts a new document that is in Compatibility mode. Normal.dotm has been updated. I like being compatible |
#8
|
||||
|
||||
To add to what Charles has said, it is possible to add the Convert Text Box to Frame command to the Quick Access Toolbar. The command probably won't work if the document is in the most recent *.docx file format, though (I haven't tested this).
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional |
#9
|
|||
|
|||
Quote:
Looks like a winner!! I see the Text Box as the more likely to use in my mindset. Hopefully I won't forget where the Frame is advantageous. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Automatic locking section of document AFTER text typed | lou1990lou | Word VBA | 2 | 01-20-2019 02:39 PM |
Word Tables and Locking Text | robertj | Word | 8 | 08-19-2015 03:21 PM |
Locking Text Box Position - Word Mac 2011 | citizenzen | Word | 3 | 02-01-2013 12:24 PM |
Locking/imbedding text | Stjamesg8 | Word | 1 | 04-12-2009 08:43 AM |
Locking Text | Boise User | Word | 0 | 01-24-2009 01:55 PM |