2017-04-23 1 views

Répondre

-1

écho Arr [1]; affichera votre deuxième tableau

0

Le silence semble un peu flou. Peut être ci-dessous morceau de code peut être lié à votre question.

'Initializing & Filling up array 
Dim testArr(3) 
testArr(0)="First" 
testArr(1)="Second" 
testArr(2)="Third" 

Dim Iterator,userInput 

'If you Need ro validate the User input you need to use Err Object. 
'Like if it's number or not/Is teh User Provided value is positive or not/ etc. etc. which i'm not doing now) 

userInput=Cint(inputbox("Please enter a Positive number between 1-" & Ubound(testArr))) 

If userInput<=Ubound(testArr) Then 
    MsgBox(testArr(userInput-1)) 
Else 
    MsgBox("Wrong Value Provided. Not Applicable Array Index Number !!!") 
End If