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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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,223,713
Messages
6,174,039
Members
452,542
Latest member
Bricklin

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