PC Review


Reply
Thread Tools Rate Thread

Count Textboxes and other objects

 
 
Dana
Guest
Posts: n/a
 
      10th Oct 2007
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?





 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      10th Oct 2007
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

"Dana" wrote:

> 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?
>
>
>
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count Textboxes and other objects Dana Microsoft Excel Discussion 1 10th Oct 2007 11:23 AM
GDI objects count sonali_reddy123@yahoo.com Microsoft Dot NET Framework Forms 3 18th Sep 2006 12:06 PM
Count of objects instantiated? Philip Daniels Microsoft Dot NET 3 30th Aug 2006 02:53 PM
Count number of textboxes =?Utf-8?B?YXByaWwyNw==?= Microsoft Excel Programming 2 19th Jun 2006 11:35 AM
count down multiple textboxes Maarten Microsoft VB .NET 2 4th Dec 2004 01:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:35 PM.