Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-11-2022, 01:14 AM
asreed78 asreed78 is offline Locking a text box Windows 11 Locking a text box Office 2021
Novice
Locking a text box
 
Join Date: Oct 2022
Posts: 1
asreed78 is on a distinguished road
Default 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...
Reply With Quote
  #2  
Old 10-11-2022, 05:08 AM
Charles Kenyon Charles Kenyon is offline Locking a text box Windows 11 Locking a text box Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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.
Reply With Quote
  #3  
Old 10-11-2022, 10:02 AM
spillerbd spillerbd is offline Locking a text box Windows 10 Locking a text box Office 2021
Competent Performer
 
Join Date: Jan 2016
Posts: 130
spillerbd is on a distinguished road
Default

more reading. more learning.
Nice that the Format Text Box has an option to Convert to Frame...
Reply With Quote
  #4  
Old 10-11-2022, 10:35 AM
Charles Kenyon Charles Kenyon is offline Locking a text box Windows 11 Locking a text box Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Nice that the Format Text Box has an option to Convert to Frame...
You cannot convert a shape to a frame although you can a textbox.
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.
Reply With Quote
  #5  
Old 10-11-2022, 11:18 AM
spillerbd spillerbd is offline Locking a text box Windows 10 Locking a text box Office 2021
Competent Performer
 
Join Date: Jan 2016
Posts: 130
spillerbd is on a distinguished road
Default

Quote:
Originally Posted by Charles Kenyon View Post
You cannot convert a shape to a frame although you can a textbox.
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.
?? Created a Text Box. Right Clicked on Text Box to Access the "Format AutoShape/Picture" which opens a window named "Format Text Box". In that window, select the Tab named "Text Box". A button there is named "Convert to Frame"
Reply With Quote
  #6  
Old 10-11-2022, 01:53 PM
Charles Kenyon Charles Kenyon is offline Locking a text box Windows 11 Locking a text box Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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
Reply With Quote
  #7  
Old 10-11-2022, 02:09 PM
spillerbd spillerbd is offline Locking a text box Windows 10 Locking a text box Office 2021
Competent Performer
 
Join Date: Jan 2016
Posts: 130
spillerbd is on a distinguished road
Default

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
Reply With Quote
  #8  
Old 10-12-2022, 04:09 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Locking a text box Windows 11 Locking a text box Office 2021
Moderator
 
Join Date: Aug 2011
Posts: 3,907
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

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
Reply With Quote
  #9  
Old 10-13-2022, 06:42 AM
spillerbd spillerbd is offline Locking a text box Windows 10 Locking a text box Office 2021
Competent Performer
 
Join Date: Jan 2016
Posts: 130
spillerbd is on a distinguished road
Default

Quote:
Originally Posted by Stefan Blom View Post
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).
I had to test that.
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.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Locking a text box Automatic locking section of document AFTER text typed lou1990lou Word VBA 2 01-20-2019 02:39 PM
Locking a text box Word Tables and Locking Text robertj Word 8 08-19-2015 03:21 PM
Locking a text box 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

Other Forums: Access Forums

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