...I need to pass strTemp variable as an argument to the Array function....
Perhaps if you indicated what it is that you are really trying to do someone here can assist you. There are other ways to handle array-like data beyond simple arrays, e.g. ranges, collections and variants. Where are the data coming from? What processing is required? How are you handling the results?
You didn't indicate what application this is for: Excel? Word? Access?
Also, this is the VBA forum. If your question is really for VB, you should post in that forum.
I will try to be more specific. This code is for Excel VBA. I have a for loop in my code that iterates and appends values to the strTemp variable. (strTemp = strTemp + someValue + "," In the end, strTemp will contain a value like this. strTemp = "a,b,c"
I want to convert this strTemp into an array, and that was why I attempted to use the Array() function. But it seems like it won't take a variable as an arugment.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.