Am 18.01.2012 18:13, Andreas Säger wrote:
Connect a registered Base document to the spreadsheet. A connection to
an indexed dBase copy might be more performant.
Create a parameter query: SELECT * FROM "Table" WHERE "Column"= 
Use the parameter query for testing if you get the wanted records for a given number :p.
Store the following Basic code somewhere in the global library container (aka "My Macros").
Modify the 6 constants on top of the code. Registered name of the database, table name, column name, first ID to substitute, last ID to substitute and the target path.
The code works without further modifications but with any type of database such as address books, csv, spreadsheets, dBase, MySQL, HSQLDB, MS Access, MS servers, Oracle servers, anything connectable with a Base document.