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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Progress 8.3 & Excel 97

Status
Not open for further replies.

ChrisBurch

IS-IT--Management
Jul 3, 2001
184
AU
Hi All,

I am currently writing a progress query that generates a .csv file, and then opens it with Excel. So far so good, it's working

What I now need to do is open another Excel workbook (first one still open), and run a macro from the just opened workbook.

Can someone advise how to get the second workbook open, and trigger a macro.

PROCEDURE MY-EXCEL:
DEF VAR chexcel AS COM-HANDLE NO-UNDO.
CREATE 'excel.application' chExcel.

def var test as char.

chexcel:VISIBLE = TRUE.
chExcel:workbooks:eek:pentext(
'C:\TEMP\Completed jobs.csv',
, /* origin */
, /* startrow */
1, /* datatype */
, /* textqualifier */
false, /* consecutivedelimiter */
false, /* tab */
FALSE, /* semicolon */
TRUE, /* comma */
false, /* space */
FALSE, /* other */
, /* otherchar */
/* fieldinfo */
)
.

RELEASE OBJECT chexcel.
END PROCEDURE.

Thanks,

Chris

It worked yesterday.
It doesn't work today.
That's Windows!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top