I need to open two work books simultaneously (Input.xls and Rules.xls) from within VFP6.
I've tried this
but it fails with "Member ACTIVESHEET does not evaluate to an object."
Please help!!
Bill Spence,
Dunfermline, Scotland
I've tried this
Code:
loExcel=getobject(,"Excel.Application") && create Excel object
loExcel.Workbooks.Open("Input.xls") && Open Input workbook
loInputBook =loExcel.activeworkbook && make a note of Input workbook
loExcel.Workbooks.Open("Rules.xls") && open Rules Workbook
loRulesBook =loExcel.activeworkbook && make a note of Rules workbook
ix=loInputBook.ActiveSheet.range("a1").value && access cell in Input Sheet
iy=loRulesBook.ActiveSheet.range("a1").value && access cell in Rules Sheet
Please help!!
Bill Spence,
Dunfermline, Scotland