Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Rafisahb
 
Posts: n/a
Default Multiple text boxes selection


Does anybody know a command to select text boxs from a worksheet?

I can select one by one but if there is a shortcut to select some 50-60
text boxes at a time?


--
Rafisahb
------------------------------------------------------------------------
Rafisahb's Profile: http://www.excelforum.com/member.php...o&userid=25312
View this thread: http://www.excelforum.com/showthread...hreadid=387956

  #2   Report Post  
Barb Reinhardt
 
Posts: n/a
Default

I've done it using the Select Multiple Objects tool on the Drawing toolbar.

"Rafisahb" wrote in
message ...

Does anybody know a command to select text boxs from a worksheet?

I can select one by one but if there is a shortcut to select some 50-60
text boxes at a time?


--
Rafisahb
------------------------------------------------------------------------
Rafisahb's Profile:
http://www.excelforum.com/member.php...o&userid=25312
View this thread: http://www.excelforum.com/showthread...hreadid=387956



  #3   Report Post  
KL
 
Posts: n/a
Default

Hi Rafisahb,

If you are talking about ActiveX controls then try this:

Sub SelectActiveXTextBoxes()
Dim OLEobj As Excel.OLEObject

ReDim myArray(0)
For Each OLEobj In ActiveSheet.OLEObjects
If TypeOf OLEobj.Object Is MSForms.TextBox Then
myArray(UBound(myArray)) = OLEobj.Name
ReDim Preserve myArray(UBound(myArray) + 1)
End If
Next OLEobj

If UBound(myArray) 0 Then
ReDim Preserve myArray(UBound(myArray) - 1)
ActiveSheet.Shapes.Range(myArray).Select
End If
End Sub

Regards,
KL



"Rafisahb" wrote in
message ...

Does anybody know a command to select text boxs from a worksheet?

I can select one by one but if there is a shortcut to select some 50-60
text boxes at a time?


--
Rafisahb
------------------------------------------------------------------------
Rafisahb's Profile:
http://www.excelforum.com/member.php...o&userid=25312
View this thread: http://www.excelforum.com/showthread...hreadid=387956



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to select multiple text boxes in excel for formatting Rob New Users to Excel 3 April 2nd 23 08:38 PM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Excel 2002 Will Not Print Text Boxes Mark Excel Discussion (Misc queries) 3 April 16th 05 12:03 AM
text boxes disappear off screen mark gregory Excel Discussion (Misc queries) 2 April 4th 05 11:47 AM
multiple text files URGENT tasha Excel Discussion (Misc queries) 1 December 19th 04 05:44 PM


All times are GMT +1. The time now is 07:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"