Microsoft
Software
Hardware
Network
Question : Getting strings from textboxes
I am trying to use the following macro to list all the textboxes on a sheet together with their positions and their text strings. But I am failing on the text string part. Can someone tell me the correct syntax for getting this?
Saqib
Sub GETOBJECTS()
For Each Obj In ActiveSheet.Shapes
Select Case Obj.Type
Case msoTextBox
rn = rn + 1
Cells(rn, 1) = "TextBox"
Cells(rn, 2) = Obj.Left
Cells(rn, 3) = Obj.Top
Cells(rn, 4) = Obj.Width
Cells(rn, 5) = Obj.Height
Cells(rn, 6) = Obj.Characters.Text
End Select
Next Obj
End Sub
Answer : Getting strings from textboxes
This appears to work:
Cells(rn, 6) = Obj.TextFrame.Characters.T
ext
Random Solutions
HP Pavilion Slimline not powering on
How can I run a stored procedure in ms sql server 2008 from excel 2003 vba
code help needed
LINQ problem, get data from var
Plasma vs. LCD
Was Noach's wife idolizer woman?
Win 7 and home network
support sql server 2005 on a mac pro notebook?
change in computer management - is it immediate
2000 member servers in a domain with Exchange 2010