Hi,
Can someone please help me translate this function to VBA?
=IF(G5="Delivery",(10000+IF(D5="Ain Jarfa",1000,3000)),10000)
I need it in Sub cmdNew_Click as:
ws.Cells(nr, "I").formula = (The above function)
Note:
Many thanks in advanced
Can someone please help me translate this function to VBA?
=IF(G5="Delivery",(10000+IF(D5="Ain Jarfa",1000,3000)),10000)
I need it in Sub cmdNew_Click as:
ws.Cells(nr, "I").formula = (The above function)
Note:
- Instead of "G5" put (ws.Cells(nr, "G"))
- Instead of "D5" put (ws.Cells(nr, "D"))
Many thanks in advanced