How can I do something like this:
Any thoughts?Please Login or Register to view this content.
I basically want to call a variable "HighAsk(x)" inside for loops that references: Sheet2.Cells(x,y) so it makes for reading my code a lot easier!
How can I do something like this:
Any thoughts?Please Login or Register to view this content.
I basically want to call a variable "HighAsk(x)" inside for loops that references: Sheet2.Cells(x,y) so it makes for reading my code a lot easier!
I am not sure I understand what you want to do.
The error that statement gives me is "Sub or Function not defined" referring specifically to the "Highask(x)" part. That could be because you did not post the entire code and you have somehow defined what highask(x) means elsewhere. A type mismatch error suggests that highask() is defined or dimensioned in some way that is incompatible with that cell's value.
My first impression is that you want highask() to be an array, and you are trying to load that array with the values in column 3. Simply addingto the code snippet above, the code runs without error and highask(9) contains whatever is in C9 of the specified sheet.Please Login or Register to view this content.
Look at how you are dimensioning or defining highask() and see if that suggests a solution.
Originally Posted by shg
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks