[Migrated content. Thread originally posted on 02 November 2006]
Hi guys,I'm trying to translate following vb codes to cobol:
[INDENT]1. ExcelApp.ActiveCell.SpecialCells(xlCellTypeLastCell).Select
[INDENT]
[/INDENT]2. Excel-Column = ExcelApp.ActiveCell.Column
[INDENT]
[/INDENT]3. Excel-Row = ExcelApp.ActiveCell.Row[/INDENT]
it is to find the "RIGHT" most cell of a spreadsheet so that when I read the spreadsheet, I would know the limit of the row and column. I can't seem get the line 1 right. If there is a easier or better way find it, please let me know.
And another VB code I am having difficult is:
[INDENT]ExcelApp.Cells(1 , 1).Value = "Column A Row 1"[/INDENT]
It should translate to:
[INDENT]Modify ExcelApp @Cells(1 , 1)::Value = "Column A Row 1"[/INDENT]
but I'm getting a compile error message. "wrong number of parameters: 0 expected, 2 found.
Thanks in advance
Chin



