$$Excel-Macros$$ Macro for IF & AND condition

2014-03-30 Thread Renata Torquato
I have the following situation: I would like the range (A1) to change to the status DELAYED if this range shows the status ON TRACK and if the deadline date on range A2 has passed the current date (Formula TODAY in another sheet). If the condition is false I would like range A1 to keep its stat

Re: $$Excel-Macros$$ Macro for IF & AND condition

2014-03-30 Thread ashish koul
Sub test() With Sheets("Sheet1") If .Range("a2").Value > VBA.Date And UCase(.Range("a1").Value) = UCase("ON TRACK ") Then .Range("a1").Value = "DELAYED" End If End With End Sub On Sun, Mar 30, 2014 at 8:32 PM, Renata Torquato wrote: > I have the following s

Re: $$Excel-Macros$$ Macro for IF & AND condition

2014-03-30 Thread Renata Torquato
Thanks. That's exactly what I tried before but it doesn't work ... =/ Em domingo, 30 de março de 2014 12h29min52s UTC-3, ashish escreveu: > > Sub test() > > With Sheets("Sheet1") > If .Range("a2").Value > VBA.Date And UCase(.Range("a1").Value) = > UCase("ON TRACK ") Then >

Re: $$Excel-Macros$$ Macro for IF & AND condition

2014-03-30 Thread ashish koul
can u share a sample file? On Sun, Mar 30, 2014 at 9:44 PM, Renata Torquato wrote: > Thanks. > > That's exactly what I tried before but it doesn't work ... =/ > > Em domingo, 30 de março de 2014 12h29min52s UTC-3, ashish escreveu: >> >> Sub test() >> >> With Sheets("Sheet1") >> If .R

Re: $$Excel-Macros$$ Macro for IF & AND condition

2014-04-02 Thread Renata Torquato
Olá Basole, obrigada pela resposta. Ainda não é isso Rs* Acontece que a célula somente deve mudar para o status DELAYED caso ela possua o status ON TRACK *E SE *a data do deadline for menor que a data atual (Se for igual o status deve continuar ON TRACK). Caso eu manualmente mude o status para

Re: $$Excel-Macros$$ Macro for IF & AND condition

2014-04-02 Thread Renata Torquato
Olá, boa tarde. Muito obrigada. Vou testar no arquivo original para ver como roda. Muito obrigada. Att. Em quarta-feira, 2 de abril de 2014 15h19min18s UTC-3, Basole escreveu: > > Olá Renata boa tarde, > > > Veja agora no anexo, se entendi o que voce quer. > > > Saudações, > > > Basole. >