Quantcast
Channel:
Viewing all articles
Browse latest Browse all 43798

Forum Post: Excel - Rows and Columns

$
0
0
Hello, I am trying to open an excel document and then count the total number of Rows and Columns. But somethings i am doing wrong and i get meaningless or same numbers (depents on putting USAGE COMP-3 or not at the end of W-BX-CELL-DATA variable) 77 excel-app handle of application. 77 excel-workbook handle of workbook. 77 excel-sheets handle of sheets. 77 excel-worksheet handle of worksheet. 01 TARGET.       05 CELL-LETTER1 PIC X VALUE IS " ".       05 CELL-LETTER2 PIC X.       05 CELL-NUMBER PIC 9(6). 01 W-BX-CELL-DATA PIC X(100) VALUE SPACES. ******************************now the routine*********************** INQUIRE excel-worksheet @Range(TARGET)::End(xlDown)::Row IN W-BX-CELL-DATA. MOVE SPACES TO W-BX-CELL-DATA INQUIRE excel-worksheet @Range(TARGET)::End(xlToRight)::Column IN W-BX-CELL-DATA.

Viewing all articles
Browse latest Browse all 43798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>