[SOLVED] Problem with COMatePlus & ExecuteExcel4Macro's
Posted: Mon Jun 25, 2012 5:56 pm
Hello srod,
I have testing following VBA-Code: ExecuteExcel4Macro("Get.Document(50)")
with COMatePlus in PB, but i don't know to insert for PB.
http://www.j-walk.com/ss/excel/tips/tip65.htm
Here with Variant tested. But 3 Print-Sides in one Sheet would be 2064
has you any Solution for me?
sorry, my english.
Regards,
Falko
I have testing following VBA-Code: ExecuteExcel4Macro("Get.Document(50)")
with COMatePlus in PB, but i don't know to insert for PB.
http://www.j-walk.com/ss/excel/tips/tip65.htm
Code: Select all
Procedure.i XLSFunc_Get_SideNumbers(ExcelObject.COMateObject); Test2 max. Druckerseiten
Protected ReturnValue.i
;ExcelObject\SetProperty("Worksheets('Tabelle1')\Activate")
ReturnValue = ExcelObject\GetIntegerProperty("ExecuteExcel4Macro('Get\Document(50)')"):Debug COMate_GetLastErrorDescription()
ProcedureReturn ReturnValue
EndProcedure

Code: Select all
Procedure.i XLSFunc_Get_SideNumbers(ExcelObject.COMateObject); Test2 max. Druckerseiten
Protected ReturnValue.Variant
ReturnValue\iVal = ExcelObject\GetVariantProperty("ExecuteExcel4Macro('Get\Document(50)')"):Debug COMate_GetLastErrorDescription()
ProcedureReturn ReturnValue\iVal
EndProcedure
sorry, my english.
Regards,
Falko