Question on Form Textboxes
You are going to have to clarify this statement for us...
"I have Form type Text Boxes"
There are no TextBoxes on the Forms toolbar... only the Controls Toolbox
toolbar or the Drawing toolbar. So, where did you get your TextBox from?
--
Rick (MVP - Excel)
"Souny" wrote in message
...
Hello all,
In every worksheet of my Excel file, I have Form type Text Boxes. I need
help with activating the Locked Text of those text boxes when I click on
the
command button. Could you please help me?
Below is the code I currently have, and it's not working.
Dim objT As OLEObject
Dim sh As Worksheet
For Each sh In Activeworkbook.Worksheets
For Each objT In sh.OLEObjects
If objT.OLEType = xlOLEEmbed Then
objT.LockedText = True
End If
Next objT
Next sh
Thanks.
|