How to give wrap text to text box

bhandari

Active Member
Joined
Oct 17, 2017
Messages
359
i have plenty of text boxes
names:
TEXT BOX NAME:JOG,BLA,GIO,IDEA,LOD,JOK
Those are IN SHEET NAME:"ID NO"

i Have attached cells to text boxes

how to assign macro for this text boxes?
word wrap=true
locKed=true
 
Last edited:

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
i have plenty of text boxes
names:
TEXT BOX NAME:JOG,BLA,GIO,IDEA,LOD,JOK
Those are IN SHEET NAME:"ID NO"

i Have attached cells to text boxes

how to assign macro for this text boxes?
word wrap=true
locKed=true
Set the MultiLine property to True.
 
Upvote 0
Can I get complete code.iam a biginner to vba..
How to lock text box through code?
Can I use code in sheet or module?
 
Last edited:
Upvote 0
Can I get complete code.iam a biginner to vba..
How to lock text box through code?
Can I use code in sheet or module?
My suggestion requires no code... you are supposed to change that property in the Properties window for the TextBox (turn on Design Mode, right click the TextBox, select Properties from the popup window that appears).
 
Upvote 0
My suggestion requires no code... you are supposed to change that property in the Properties window for the TextBox (turn on Design Mode, right click the TextBox, select Properties from the popup window that appears).

its not a active x text box

its a shape

iam trying to use this code
Code:
Sub Cronical_Click()
With ActiveSheet.TextBoxes
        ActiveSheet.TextBoxes.Locked = True
        ActiveSheet.TextBoxes.LockedText = True
End With
With ActiveSheet
        .Range(Array("TBA,TBB,TBC,TBD,TBE,TBF,TBR,TBL")).Select
        .Selection.ShapeRange.TextFrames.WordWrap = msoFalse
        .TextBoxes.Protect = "loka"
End With
End Sub

its not working properly can u please fix this sir.

can we use this for multiple shapes?
or i need assign code separately?
 
Upvote 0

Forum statistics

Threads
1,224,755
Messages
6,180,766
Members
452,996
Latest member
nelsonsix66

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top