deadlyliquidx
New Member
- Joined
- Feb 6, 2015
- Messages
- 27
Hello friends!
I need to build an array based on a list in range A1:a300 on a sheet for a big code.
As you can see, I will manually have to put in range a1,a2,a3,a4 all the way up to 300 to build this array.
is there anyway this array can go through the column and build itself, like
sc.VisibleSlicerItemsList = Array(ActiveSheet.Range("a1:a300") which doesn't work when I tried it.
Better yet, would be if you can ask the array to stop building when there is a blank or error.
seems like a simple request but I cant figure it out for the life of me.
Let me know if you guys have any ideas.
Thanks!!!
I need to build an array based on a list in range A1:a300 on a sheet for a big code.
Code:
sc.VisibleSlicerItemsList = Array(ActiveSheet.Range("a1"), ActiveSheet.Range("a2:a2"), ActiveSheet.Range("a3:a3"))
is there anyway this array can go through the column and build itself, like
sc.VisibleSlicerItemsList = Array(ActiveSheet.Range("a1:a300") which doesn't work when I tried it.
Better yet, would be if you can ask the array to stop building when there is a blank or error.
seems like a simple request but I cant figure it out for the life of me.
Let me know if you guys have any ideas.
Thanks!!!