LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default iterate through textboxes on sheet

Hi there,

I run a model which takes a *lot* of parameters. The paramters are
entered into a large number of textboxes on an excel worksheet. THe
textboxes have names like
"textboxShapeParameter1","textboxShapeParamete r2",
"textboxShapeParameter3" and so on.

I have set up my code so that all of these parameters get put into
various places in arrays. Is there a way I can iterate through the
textboxes to initialise them?

I want to write something like the following:

dim testArray (3) as double

for it = 0 to ubound(testArray)

testArray(it) = textboxShapeParameter & it.value

next it

I suspect this isn't possible, but is there any other way to go
through each of the textboxes on the sheet without *manually* writing
the code for each one?

Thanks in advance

Chris

 
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
Update Data On Sheet From UserForm TextBoxes Minitman[_5_] Excel Programming 3 July 30th 07 02:34 PM
Getting From UserForm TextBoxes To Lastrow On Active Sheet Minitman[_4_] Excel Programming 3 September 12th 06 11:27 PM
Iterate through controls lgbjr Excel Programming 3 May 28th 05 02:09 PM
Can't iterate thru a row with For peter Excel Programming 2 January 7th 05 04:46 AM
Iterate columns wired Excel Programming 9 November 14th 03 11:14 PM


All times are GMT +1. The time now is 01:32 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"