Group:  Microsoft Excel ยป microsoft.public.excel.querydao
Thread: How to populate data in a excel sheet using VB

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

How to populate data in a excel sheet using VB
geetha.chintalapudi[ at ]gmail.com 31.08.2006 10:13:25
I want to populate data into excel sheet from sql db which I have
already done. But I want to populate the data in different colors
depending on one columen value...for eg..in col3 the values are
ERROR,INFO etc....if the value is ERROR the records should come in red.
If it is INFO the records should be in white..otherwise in Green
color...

Please let me know how to do this...

RE: How to populate data in a excel sheet using VB
Gary''s Student 02.09.2006 20:53:01
Conditonal Formatting is what you need. It can be applied from either the
worksheet or VBA.


See:

http://www.contextures.com/xlCondFormat01.html
--
Gary's Student


"geetha.chintalapudi[ at ]gmail.com" wrote:

[Quoted Text]
> I want to populate data into excel sheet from sql db which I have
> already done. But I want to populate the data in different colors
> depending on one columen value...for eg..in col3 the values are
> ERROR,INFO etc....if the value is ERROR the records should come in red.
> If it is INFO the records should be in white..otherwise in Green
> color...
>
> Please let me know how to do this...
>
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net