Roopher
Board Regular
- Joined
- Jul 8, 2008
- Messages
- 73
Hello there!
I am kind of baffled with an array assignment task which should be working as intended, but isn't:
1.
I have an VBA array *asglWriteBack(1 to 139)*, which is correctly filled with singles.
2.
Also, I have a range of the same dimension, which is a column of an listobject table: *mlstCurrentStratTable.ListColumns(14).DataBodyRange*.
3.
What I want to do is to assign the array to the range to have the range (table column) filled; so I try: *mlstCurrentStratTable.ListColumns(14).DataBodyRange = asglWriteBack*.
P.
The problem is, that the entire column (i.e. all of its 139 cells) is not being mapped to the array content, but only filled with the content of the first array element: When the first array element asglWriteBack(1) has the value 'xyz', then the entire range mlstCurrentStratTable.ListColumns(14).DataBodyRange gets assigned 'xyz'. What I am doing wrong here with the mapping?
ps: I don't want to iterate all the range's cells individually; I'd like to 'flash'-in the array onto that range.
Thank's alot for you suggestions!
I am kind of baffled with an array assignment task which should be working as intended, but isn't:
1.
I have an VBA array *asglWriteBack(1 to 139)*, which is correctly filled with singles.
2.
Also, I have a range of the same dimension, which is a column of an listobject table: *mlstCurrentStratTable.ListColumns(14).DataBodyRange*.
3.
What I want to do is to assign the array to the range to have the range (table column) filled; so I try: *mlstCurrentStratTable.ListColumns(14).DataBodyRange = asglWriteBack*.
P.
The problem is, that the entire column (i.e. all of its 139 cells) is not being mapped to the array content, but only filled with the content of the first array element: When the first array element asglWriteBack(1) has the value 'xyz', then the entire range mlstCurrentStratTable.ListColumns(14).DataBodyRange gets assigned 'xyz'. What I am doing wrong here with the mapping?
ps: I don't want to iterate all the range's cells individually; I'd like to 'flash'-in the array onto that range.
Thank's alot for you suggestions!