Discussion:
Count Textboxes and other objects
(too old to reply)
Dana
2007-10-10 10:01:16 UTC
Permalink
Is there any way that you can count the number of textboxes and other
drawing objects in a sheet using c# or VB from an application and change
their contents?
Joel
2007-10-10 10:23:00 UTC
Permalink
Dana: this code should work


Sub count_boxes()

Count = 0
For Each myshape In ActiveSheet.Shapes
If myshape.Type = msoTextBox Then
Count = Count + 1
End If
Next myshape

End Sub
Post by Dana
Is there any way that you can count the number of textboxes and other
drawing objects in a sheet using c# or VB from an application and change
their contents?
Loading...