Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to use text boxes as an array in an EXCEL user form

How can a series of text boxes or labels be used as an array within a MS
EXCEL user form? (MS Office 2003/EXCEL)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default how to use text boxes as an array in an EXCEL user form

Not sure what you want to do, but if you are trying to map contents of
UserForm controls into an array then depending on how you named your
controls this may be easy or not. The same applies if you want to move the
contents of the array to the controls.

Perhaps you could be more specific in explaining what you are trying to do?



--

Regards,
Nigel




"MWJchmsn" wrote in message
...
How can a series of text boxes or labels be used as an array within a MS
EXCEL user form? (MS Office 2003/EXCEL)


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default how to use text boxes as an array in an EXCEL user form

Name your TextBoxes with the same beginning text and then affix sequential
numbers after them. For example, names something like this...

ArrayTBox1, ArrayTBox2, ..., ArrayTBox10, ArrayTBox11, etc

Here is simple code to showing you how to use the Controls collection to
address them...

For X = 1 To 12
Controls("ArrayTBox" & X).Value = "TBox Number: " & X
Next

Obviously, the TextBoxes will not be in a "true" array, but you will be able
to address them as if they were.

--
Rick (MVP - Excel)


"MWJchmsn" wrote in message
...
How can a series of text boxes or labels be used as an array within a MS
EXCEL user form? (MS Office 2003/EXCEL)


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
User Form Text Boxes - Copy format of text boxes NDBC Excel Discussion (Misc queries) 3 July 2nd 09 02:02 AM
Setting an array of text boxes equal to individual form text boxes lcaretto Excel Programming 6 September 19th 08 04:19 PM
Excel User form with 4 Combo Boxes ca1358 Excel Programming 4 January 16th 06 07:07 PM
User form and text boxes on charts Joel Mills Excel Programming 2 June 17th 05 10:10 PM
Auto fill text boxes in user form by inputting data in another Finny33 Excel Programming 1 September 13th 04 12:53 PM


All times are GMT +1. The time now is 10:58 PM.

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"