i have created a simple macro that will go row by row and check the value of column B if its greater that 1 it will delete the contents of cell A
Code: Select all
oSheet = odoc.getSheets().getByIndex(1)
For I = 0 To 10000
oCell = oSheet.getCellByPosition(1,i)
Check = oCell.getValue
if Check > 1 then
oSheet.getCellByPosition(0,i).clearContents(4)
endif
Next I
MSGBOX "DONE"
i would like to eliminate the need for column B and do the countif calculation as part of the macro so something like
Code: Select all
if COUNTIF($Sheet2A$1:A$10000;Ai) > 1 then
oSheet.getCellByPosition(0,i).clearContents(4)
endif
Next I
and yes 10000 lines is needed for match in fact 20000 lines is actually needed for match but oo tends to crash when updating that many formulas