ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Put variable into text ? (https://www.excelbanter.com/excel-programming/350228-put-variable-into-text.html)

SpookiePower

Put variable into text ?
 
I have 60 lines like this one

TextBox01.Text = ..
TextBox02.Text = ....
....
....

Now I would like to make it more simple by setting a variable - X - into the TextBox-text
and then do a loop 60 time instead of writing 60 lines.

My idée was to do it like this - TextBox & X &.Text
But it does not work. What is wrong ?

--
My Photoalbum
www.photo.activewebsite.dk




Bob Phillips[_6_]

Put variable into text ?
 
See response in public.excel

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"SpookiePower" wrote in message
. dk...
I have 60 lines like this one

TextBox01.Text = ..
TextBox02.Text = ....
...
...

Now I would like to make it more simple by setting a variable - X - into

the TextBox-text
and then do a loop 60 time instead of writing 60 lines.

My idée was to do it like this - TextBox & X &.Text
But it does not work. What is wrong ?

--
My Photoalbum
www.photo.activewebsite.dk







All times are GMT +1. The time now is 05:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com