LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default Array questions

When you assign values in a range to a variant, I read that the indexes are
always one-based, even if Option Base 0 is explicitly declared.

Example:
Option Base 0
Dim SalesData
SalesData=Range("A1:F10000")
Customer = SalesData


Would that apply if the coder did this, using the "()", a dynamic array of
variants?:
Option Base 0
Dim SalesData()
SalesData()=Range("A1:F10000")
Customer = SalesData()

I'm also curious, does the code, "Customer = SalesData", assign the same
value as would "Customer = SalesData()"?


I ask because I'm working on some code where the Devleoper wrote code and
I'm trying to figure out whether declaring Option Base would have any impact:

Dim varAddr()
varAddr() = Range("h2:h65536")

 
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
Array Functions - Two Questions MDW Excel Worksheet Functions 3 January 12th 05 06:54 PM
Web Query & Array Questions! gr8guy Excel Programming 1 August 25th 04 11:05 PM
Array questions Tom Excel Programming 2 November 25th 03 01:06 PM
Listbox and Array questions Stuart[_5_] Excel Programming 4 September 23rd 03 11:04 PM
Array Questions DWTSG Excel Programming 3 July 24th 03 06:53 PM


All times are GMT +1. The time now is 09:42 AM.

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"