Kirk P. said:
I see this transfers the data from one sheet to another, which isn't entirely
helpful. What I'm really trying to do is accomodate an Oracle PL/SQL query,
which can only handle 1,000 items at a time in its IN function. I'm using
Excel to identify those 1,000 items in which to run the query.
I've got this long list of items in Excel, and what I'm really trying to do
is to automate the selection of each group of 1,000 items all the way down
the list. My current process is to manually go through the list, select the
first 1,000 items, copy them into my SQL statement, run the query, manually
select the next 1,000 rows, copy them into my SQL statement, run the query,
and so on. For a list of nearly 128,000 items I have to manually select my
1,000 item block 128 times.
What I'm looking for is to kick off a macro that selects the first 1,000
items, stops and allows me to copy/paste those items into my SQL, then I need
some way to continue the macro so it selects the NEXT 1,000 items, then
stopping and allowing me to copy/paste etc, etc all the way down the list.