Hi,
I have the following formula in VBA which works fine
Worksheets("TRANSPORT").Range("ZONEFRET[Amount in local Currency]").Formula = "=IF(OR(B17="""",C17="""",D17="""",E17="""",F17=""""),"""",MIN(H17,MAX(C17*F17,G17)))"
But instead of using cell references I would lile to use tab[column header]
Here the fomula in excel format
=IF(OR(ZONEFRET[@Description]="",ZONEFRET[@QTY]="",ZONEFRET[@Unit]="",ZONEFRET[@Currency]="",ZONEFRET[@[Unite Price]]=""),"";MIN(ZONEFRET[@Max],MAX(ZONEFRET[@QTY]*ZONEFRET[@[Unite Price]],ZONEFRET[@Min])))
The syntaxe seems to be differente in VBA , how can I write that formula in VBA ?
Thanks
I have the following formula in VBA which works fine
Worksheets("TRANSPORT").Range("ZONEFRET[Amount in local Currency]").Formula = "=IF(OR(B17="""",C17="""",D17="""",E17="""",F17=""""),"""",MIN(H17,MAX(C17*F17,G17)))"
But instead of using cell references I would lile to use tab[column header]
Here the fomula in excel format
=IF(OR(ZONEFRET[@Description]="",ZONEFRET[@QTY]="",ZONEFRET[@Unit]="",ZONEFRET[@Currency]="",ZONEFRET[@[Unite Price]]=""),"";MIN(ZONEFRET[@Max],MAX(ZONEFRET[@QTY]*ZONEFRET[@[Unite Price]],ZONEFRET[@Min])))
The syntaxe seems to be differente in VBA , how can I write that formula in VBA ?
Thanks