RE: [delphi-br] Ajuda.....excel delphi

2009-08-28 Por tôpico Wilson, Stephen
Ola Rodrigo

Quais sao as condicoes, e que voce quer que aconteca quando a condicao for 
satisfeita?
Abaixo ha um exemplo em que as celulas se tornam verde se o valor numa delas 
fique entre 2 e 5


procedure TForm1.Button1Click(Sender: TObject);
var op,f1,f2:oleVariant;
begin
op:= xlBetween;
f1:= 2;
f2:=5;
WS1.Range(qualquer intervalo de 
cells).FormatConditions.Add(xlCellValue,op,f1,f2);
WS1.Range(qualquer intervalo de 
cells).FormatConditions[0].Interior.ColorIndex:= clGreen;
end;

Este hiper pode fornecer alguma ajuda se voce leia ingles -  infelizmente nao 
esta disponivel em Portugues:

http://msdn.microsoft.com/pt-br/library/aa174221(en-us,office.11).aspx

Espero que isso faca sentido.  Me desculpe pelo meu Portugues.  

Att.

Steve



-Original Message-
From: delphi-br@yahoogrupos.com.br
[mailto:delphi...@yahoogrupos.com.br]on Behalf Of rodrigoojapa
Sent: 27 August 2009 20:50
To: delphi-br@yahoogrupos.com.br
Subject: [delphi-br] Ajuda.excel delphi


Boa tarde Pessoal,

tenho uma aplicação que verifica algumas condições no excel, e eu gostaria de 
pintar as celulas do excel quando a condição for satisfeita.
Alguem pode me ajudar..





-- 
 FAVOR REMOVER ESTA PARTE AO RESPONDER ESTA MENSAGEM 





***
This e-mail and any files transmitted with it are confidential. If you are not 
the intended recipient, any reading, printing, storage, disclosure, copying or 
any other action taken in respect of this e-mail is prohibited and may be 
unlawful. If you are not the intended recipient, please notify the sender 
immediately by using the reply function and then permanently delete what you 
have received.
Content of emails received by this Trust will be subject to disclosure under 
the Freedom of Information Act 2000, subject to the specified exemptions, 
including the Data Protection Act 1998 and Caldicott Guardian principles.
This footnote also confirms that, unless otherwise stated, this email message 
has been swept by Sophos Anti-virus for the presence of computer viruses.
***



RE: [delphi-br] Ajuda.....excel delphi

2009-08-28 Por tôpico Wilson, Stephen
 ..

Abaixo e o que eu estava procurando. Mais uma vez ele esta em ingles, mas eu 
acho que possa ser muito util:

http://www.djpate.freeserve.co.uk/AutoExcl.htm#FormatRange

Steve

-Original Message-
From: delphi-br@yahoogrupos.com.br
[mailto:delphi...@yahoogrupos.com.br]on Behalf Of rodrigoojapa
Sent: 27 August 2009 20:50
To: delphi-br@yahoogrupos.com.br
Subject: [delphi-br] Ajuda.excel delphi


Boa tarde Pessoal,

tenho uma aplicação que verifica algumas condições no excel, e eu gostaria de 
pintar as celulas do excel quando a condição for satisfeita.
Alguem pode me ajudar..





-- 
 FAVOR REMOVER ESTA PARTE AO RESPONDER ESTA MENSAGEM 





***
This e-mail and any files transmitted with it are confidential. If you are not 
the intended recipient, any reading, printing, storage, disclosure, copying or 
any other action taken in respect of this e-mail is prohibited and may be 
unlawful. If you are not the intended recipient, please notify the sender 
immediately by using the reply function and then permanently delete what you 
have received.
Content of emails received by this Trust will be subject to disclosure under 
the Freedom of Information Act 2000, subject to the specified exemptions, 
including the Data Protection Act 1998 and Caldicott Guardian principles.
This footnote also confirms that, unless otherwise stated, this email message 
has been swept by Sophos Anti-virus for the presence of computer viruses.
***



Re: [delphi-br] Ajuda.....excel delphi

2009-08-28 Por tôpico Ulisses
Bom dia!

Da uma olhada nesse site. 

http://www.mvps.org/dmcritchie/excel/colors.htm

Boa sorte.

Ulisses

  - Original Message - 
  From: rodrigoojapa 
  To: delphi-br@yahoogrupos.com.br 
  Sent: Thursday, August 27, 2009 4:49 PM
  Subject: [delphi-br] Ajuda.excel delphi


Boa tarde Pessoal,

  tenho uma aplicação que verifica algumas condições no excel, e eu gostaria de 
pintar as celulas do excel quando a condição for satisfeita.
  Alguem pode me ajudar..



  

[As partes desta mensagem que não continham texto foram removidas]



[delphi-br] Ajuda.....excel delphi

2009-08-27 Por tôpico rodrigoojapa
Boa tarde Pessoal,

tenho uma aplicação que verifica algumas condições no excel, e eu gostaria de 
pintar as celulas do excel quando a condição for satisfeita.
Alguem pode me ajudar..