/
Forside
/
Teknologi
/
Udvikling
/
VB/Basic
/
Nyhedsindlæg
Login
Brugernavn
*
Kodeord
*
Husk mig
Brugerservice
Kom godt i gang
Bliv medlem
Seneste indlæg
Stil et spørgsmål
Skriv et tip
Pointsystemet
Kontakt Kandu.dk
Emnevisning
Kategorier
Alfabetisk
Karriere
Interesser
Teknologi
Reklame
Top 10 brugere
VB/Basic
#
Navn
Point
1
berpox
2425
2
pete
1435
3
CADmageren
1251
4
gibson
1230
5
Phylock
887
6
AntonV
790
7
strarup
750
8
Benjamin...
700
9
tom.kise
610
10
EXTERMINA..
600
Getting values from textboxes to variables
Fra :
fd
Dato :
05-07-02 21:28
Hi NG
I hope that some can help me.
I'm building a userform in Excel where I have to get data from several
textboxes into a variable called SPEED.
Nw my problem is that I can not get Textbox statment changing, if I instad
of "f = TextBox & j & i" writes "f = TextBox12" it works but I only get the
value of one TextBox. What can I do to get all the values from the userform.
Dim SPEED(10, 25) As Double
Dim f As String
Dim i As Integer
Dim j As Integer
i = 1
j= 1
Do
Do
f = TextBox & j & i
SPEED(j, i) = f
i = i + 1
Loop Until i = 25
j=j+1
Loop Until ((j =10) Or (f=""))
Best,
Casper
Tom Ogilvy (
05-07-2002
)
Kommentar
Fra :
Tom Ogilvy
Dato :
05-07-02 22:57
Since you said userform
f = useform1.Controls("TextBox" & j & i).Text
Regards,
Tom Ogilvy
fd <dfg@dfs.dfh> wrote in message news:ag4vda$3sf$1@news.cybercity.dk...
> Hi NG
>
> I hope that some can help me.
>
>
> I'm building a userform in Excel where I have to get data from several
> textboxes into a variable called SPEED.
> Nw my problem is that I can not get Textbox statment changing, if I instad
> of "f = TextBox & j & i" writes "f = TextBox12" it works but I only get
the
> value of one TextBox. What can I do to get all the values from the
userform.
>
>
> Dim SPEED(10, 25) As Double
> Dim f As String
> Dim i As Integer
> Dim j As Integer
>
>
> i = 1
> j= 1
>
> Do
> Do
> f = TextBox & j & i
> SPEED(j, i) = f
> i = i + 1
> Loop Until i = 25
> j=j+1
> Loop Until ((j =10) Or (f=""))
>
>
> Best,
> Casper
>
>
Søg
Alle emner
Teknologi
Udvikling
VB/Basic
Indstillinger
Spørgsmål
Tips
Usenet
Reklame
Statistik
Spørgsmål :
177818
Tips :
31980
Nyheder :
719565
Indlæg :
6410969
Brugere :
218912
Månedens bedste
Årets bedste
Sidste års bedste
Copyright © 2000-2026 kandu.dk. Alle rettigheder forbeholdes.