knowledge-database (beta)

Current group: comp.soft-sys.powerbuilder

PowerBuilder(MACRO in Excel 2000)?

PowerBuilder(MACRO in Excel 2000)?  
Gasper
From:Gasper
Subject:PowerBuilder(MACRO in Excel 2000)?
Date:7 Jan 2005 07:43:55 -0800
I'm using PowerBuilder 9.0 and I want to run MACRO in Excel 2000.
Something is wrong and I don't know what? Can you help me?

CODE:
-------------------------------------------------------------------------------
OLEObject iOLEExcel
iOLEExcel = CREATE OLEObject
iOLEExcel.ConnectToNewObject("excel.application")
iOLEExcel.Visible = TRUE
iOLEExcel.Workbooks.Open("C:\TEST.xls")
iOLEExcel.ActiveWorkbook.Worksheets[1].Activate

iOLEExcel.Application.Run("PERSONAL.XLS!Macro1") //ERROR

iOLEExcel.Application.Quit
iOLEExcel.DisConnectObject()
Destroy iOLEExcel
-------------------------------------------------------------------------------
   

Copyright © 2006 knowledge-database   -   All rights reserved