mrmmickle1
Well-known Member
- Joined
- May 11, 2012
- Messages
- 2,461
If I have a list like this:
How would I get these into an array (Excluding the Header)? I am familiar with hard coding arrays like this:
How can I do the same thing but make the list dynamic. So the array will consist of Company's A-D now. However, if I added for example a few more:
It would now encompass these additional Companies.... (Companies A-G)
Any help would be much appreciated. Thanks.
Excel 2012 | |||
---|---|---|---|
A | |||
1 | Company Names | ||
2 | Company A | ||
3 | Company B | ||
4 | Company C | ||
5 | Company D | ||
Sheet1 |
How would I get these into an array (Excluding the Header)? I am familiar with hard coding arrays like this:
Code:
CompArray = Array("Company A", "Company B", "Company C", "Company D") [COLOR=#008000]'Define Name Array[/COLOR]
How can I do the same thing but make the list dynamic. So the array will consist of Company's A-D now. However, if I added for example a few more:
Excel 2012 | |||
---|---|---|---|
A | |||
1 | Company Names | ||
2 | Company A | ||
3 | Company B | ||
4 | Company C | ||
5 | Company D | ||
6 | Company E | ||
7 | Company F | ||
8 | Company G | ||
Sheet1 |
It would now encompass these additional Companies.... (Companies A-G)
Any help would be much appreciated. Thanks.