dazedandconfused123
New Member
- Joined
- Jan 27, 2021
- Messages
- 2
- Office Version
- 2010
- Platform
- Windows
Hello,
Fairly new to VBA and feel like this is out of my league.
I want to slice a one column range in my excel worksheet every time the type changes (it's uniform so it will always be i.e. 3 iterations of a type) into a 2D array in VBA.
I need it sliced precisely because I will be indexing the array and using it's values to populate other arrays based whether or not it meets certain conditions.
Example Data in Worksheet:
Type:
1
1
1
2
2
2
3
3
3
4
4
4
Desired Outcome in VBA Array:
1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4
Fairly new to VBA and feel like this is out of my league.
I want to slice a one column range in my excel worksheet every time the type changes (it's uniform so it will always be i.e. 3 iterations of a type) into a 2D array in VBA.
I need it sliced precisely because I will be indexing the array and using it's values to populate other arrays based whether or not it meets certain conditions.
Example Data in Worksheet:
Type:
1
1
1
2
2
2
3
3
3
4
4
4
Desired Outcome in VBA Array:
1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4