T
Tony Zappal
Hi all,
I'm trying to put together a macro that will retrive data from an Oracle
database.
I have the databse connection section setup and working.
However the part I'm struggling with is the excel data to put into the query.
The scenerio is thus: I have in column A a variable range of values. That
range can be 10 numbers or 500 numbers or more.
What i'm trying to do(or think i need to do), is put those cells into an
array.
I however, need to limit the number of cells that go into the array to a max
of 50 at a time, due to the nature of the query.(also need to figure out how
to put commas between the numbers for the where clause in the query).
The query will then run using the array in the where clause of the script,
and output a single retrieved column to column B, and append to the end each
time the macro goes through the array values.
So i need to put that into a loop, which will stop when the range of values
finishes (i.e. via the next cell being empty).
Does that make sense?
If i could get some help with this it would be great.
Cheers,
TZ.
I'm trying to put together a macro that will retrive data from an Oracle
database.
I have the databse connection section setup and working.
However the part I'm struggling with is the excel data to put into the query.
The scenerio is thus: I have in column A a variable range of values. That
range can be 10 numbers or 500 numbers or more.
What i'm trying to do(or think i need to do), is put those cells into an
array.
I however, need to limit the number of cells that go into the array to a max
of 50 at a time, due to the nature of the query.(also need to figure out how
to put commas between the numbers for the where clause in the query).
The query will then run using the array in the where clause of the script,
and output a single retrieved column to column B, and append to the end each
time the macro goes through the array values.
So i need to put that into a loop, which will stop when the range of values
finishes (i.e. via the next cell being empty).
Does that make sense?
If i could get some help with this it would be great.
Cheers,
TZ.