LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default how do i fill an array? tia

sorry, i was playing around and forgot to remove that line

--


Gary


"Alan Beban" <unavailable wrote in message
...
Gary Keramidas wrote:
see if this will work

Sub test()
Dim arr As Variant
Dim x As Integer, n As Integer
ReDim arr(100)

For n = 1 To 100
ReDim Preserve arr(1 To n)'<--What's the point of this?
arr(n) = 5
Next n
End Sub


Alan Beban



 
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
Fill in cells with an array dgh Excel Discussion (Misc queries) 0 May 15th 09 08:42 PM
fill array with only values GKeramidas Excel Programming 3 September 4th 06 09:57 AM
FILL ARRAY ONE ROW AT A TIME [email protected] Excel Programming 3 August 25th 06 09:52 PM
fill array [email protected][_2_] Excel Programming 7 March 20th 06 01:01 PM
fill down array to last available row [email protected] Excel Worksheet Functions 10 May 19th 05 10:52 PM


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