LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default Inputbox - Dynamic Array?

Ok, I see. Got it!

Thanks!!

"Tom Ogilvy" wrote:

there was an illustration in the code:

For j = LBound(varr) To UBound(varr)
Debug.Print j, varr(j)
Next

Debug.print goes to the immediate window, so make it visible in the vbe
(View=Immediate Window)

unless you mean something besides looking at the values stored in the array
when you say call the data.

--
Regards,
Tom Ogilvy

"Alex" wrote in message
...
Thanks Tom!!!

One last thing....

How would I call the data in the array?



"Tom Ogilvy" wrote:

Sub CCCC()
Dim varr()
Dim i as long, j as long, res as variant

res = InputBox("Enter value for 1st element")
i = 0
Do While res < ""
ReDim Preserve varr(0 To i)
varr(UBound(varr)) = res
i = i + 1
res = InputBox("Enter value for " & i + 1 & " element" & _
vbNewLine & " hit cancel to stop entry")
Loop
For j = LBound(varr) To UBound(varr)
Debug.Print j, varr(j)
Next

End Sub

--
Regards,
Tom Ogilvy


"Alex" wrote in message
...
Can I use a input box to load data into a dynamic array?

Example code, if you can please.

THANK YOU!!



--
Jack of all trades... master of none..






 
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
inputbox type 64 (array) pete the greek Excel Discussion (Misc queries) 8 May 20th 23 11:44 AM
Dynamic 2-Dim Array kAVAL Excel Programming 1 July 1st 04 01:07 AM
Dynamic Array Michael168[_82_] Excel Programming 1 June 2nd 04 07:26 AM
Pulling Array from InputBox cogent Excel Programming 1 April 27th 04 08:36 AM
Dynamic 2D Array ExcelMonkey[_52_] Excel Programming 4 January 31st 04 09:32 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"