I want to know about vbscript with macros

Closed
san` - 21 Jul 2009 à 11:18
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 22 Jul 2009 à 20:59
Hello,
i have two excel sheet in that one is filled of details like empname and shifttype. with this information i want to fill Rupees colum in second sheet condition is if shift a or b rupees 100 and if shift c rupees 400. I dont know to write a code in vbscript. please, help me to write the code.
Related:

1 response

venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 811
22 Jul 2009 à 20:59
why do you want vb scrip
in sheet 2 in any cell type this formula

=IF(OR(Sheet1!B2="a",Sheet1!B2="b"),100,IF(Sheet1!B2="c",400,""))
if necessary copy this formula down