#1   Report Post  
Posted to microsoft.public.excel.misc
Jeff
 
Posts: n/a
Default VBA using an array

I have an array Array(100)

and I want to set Array() = 10 for 1-100

Is there another way to set = 10

rather then using

For i = 1 to 100
Array(i) = 10
Next I

Thanks for your help
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Umlas
 
Posts: n/a
Default VBA using an array

Not really. But why worry? Even if that loop went to 100000 it'd be a
fraction of a second!
"Jeff" wrote in message
...
I have an array Array(100)

and I want to set Array() = 10 for 1-100

Is there another way to set = 10

rather then using

For i = 1 to 100
Array(i) = 10
Next I

Thanks for your help



  #3   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey
 
Posts: n/a
Default VBA using an array

There are other ways, but probably all less efficient that that loop.

The loop is pretty fast.

In article ,
"Jeff" wrote:

I have an array Array(100)

and I want to set Array() = 10 for 1-100

Is there another way to set = 10

rather then using

For i = 1 to 100
Array(i) = 10
Next I

Thanks for your help

Reply
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
Excel array formulas Les Gordon Excel Discussion (Misc queries) 1 September 3rd 05 04:12 PM
Pass an array to Rank Biff Excel Worksheet Functions 12 June 29th 05 04:15 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


All times are GMT +1. The time now is 12:47 PM.

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

About Us

"It's about Microsoft Excel"