Hello everyone and good morning! Or whatever it is where you are
So I have created a few macros which gather data from tabs into globally defined arrays. I would like to simplify by creating a single macro for this action. To do this I was planning on passing the name of the array to a sub/function which would handle the rest.
My problem is this...
I cannot get the macro to use the string as the name of the array...
I assumed there was an array object so I could do the following treating the array as an object... however, that does not seem to be a possibility.
I am sure I am already wayyyy off base. Any help would be greatly appreciated.
So I have created a few macros which gather data from tabs into globally defined arrays. I would like to simplify by creating a single macro for this action. To do this I was planning on passing the name of the array to a sub/function which would handle the rest.
My problem is this...
I cannot get the macro to use the string as the name of the array...
I assumed there was an array object so I could do the following treating the array as an object... however, that does not seem to be a possibility.
Code:
Sub SimplyArray(strArrayName as String)
Dim ary as Array
Set ary = strArrayName
....
I am sure I am already wayyyy off base. Any help would be greatly appreciated.