Question : VBA macro - conditional column fill

Hello Everyone :

I have been wrestling with this since yesterday but gotten nowhere,was hoping someone could show me the light

I have this workbook  in which I have the following 2 requirements :

1)if the user enters a value(which is a date) in column A : the value of '2' is automatically filled in column C


2)

a- if the user enters a positive number (+) in column D (eg : +100) : the value of 'DEP' is automatically filled in column 'H'

b- if the user enters a negative number (-) in column D (eg : -50) : the value of 'WD' is automatically filled in column 'H'.

Again as pointers would be much appreciated.

Many thanks

Answer : VBA macro - conditional column fill

It would be better to use formulas..see attached workbook.  There are formulas in columns C and H down to row 10, but you can drag them down as far as you want...


If you are still wanting to use a macro, then someone will come along soon and fix yours for you.  I don't have time right now...

:-)
Albert

 
Sample1
 
Random Solutions  
 
programming4us programming4us