Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting to Excel

Status
Not open for further replies.

bobsmallwood

Programmer
Aug 9, 2001
38
US
What code can I put on a pushbutton that will export a database table in my :pRIV: directory to an excel format file in another directory?

Is there additional code that would then launch Excel (if necessary) and then open the excel file just created?
 
Try this:

exportSpreadsheet (":work:myData.db", ":priv:myData.xls", True)

Then use execute() to launch Excel with a command line argument containing your spreadsheet path and name; or, you can use a DDE link if you know Excel's DDE behavior.



Mac :)

"There are only 10 kinds of people in this world... those who understand binary and those who don't"

langley_mckelvy@cd4.co.harris.tx.us
 
No, not unless you want to substitute variables for the table name or spreadsheet name.

Mac :)

"There are only 10 kinds of people in this world... those who understand binary and those who don't"

langley_mckelvy@cd4.co.harris.tx.us
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top