Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Checking Against Excel List via QM
#3
I did a bit...

Ok, maybe you can clear this one by one.

In the below code I have chosen the entire G column in Excel, which includes the empty cells too.
1) How do I choose just the ones with data.
Note: This column is dynamic and so keeps increasing and decreasing.

2) How do I check if a cell is empty? In the below code, I have tried a simple empty quotes method. Is there a better foolproof way?

Macro NC VCC Release Corrections
Code:
Copy      Help
ARRAY(str) tempCell
int r

int w1=act(win("Microsoft Excel - LR Sales" "XLMAIN"))
ExcelSheet es.Init
es.Activate(1 "VCC Release Spool") ;;Activate Sheet
es.Activate(4) ;;Bring Excel Window Forward
;es.SelectCell("G1")
;'D
es.CellsToArray(tempCell "G:G")
for r 1 tempCell.len ;;for each row
,if tempCell[0 r]=""
Best Regards,
Philip


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)