Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6776077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:59:02+00:00 2026-05-26T15:59:02+00:00

I am working in WPF application with excel . In that application i am

  • 0

I am working in WPF application with excel . In that application i am having a column name as Bulk. That column contains two options like YES and NO as a text. Now i need to indicate the font as red color for YES option and Normal Black color for NO option.
I got the range of that particular column. But i dont know How shall i get the YES options and NO options seperately and also i need to color that options as per the need.

Here I mentioned my code :

foreach(Range Value in range.cells)
{

???????
???????
}

Any one pls tell me the solution of this. How shall i proceed this process. Thanks in Advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:59:02+00:00Added an answer on May 26, 2026 at 3:59 pm

    Add this class to your project and change the namespace to yours and start using it to create what you want in coloring settings

    as far as your YES/NO detection, you can do the following:

            Microsoft.Office.Interop.Excel.Range range = myworksheet.UsedRange;
            //Start iterating from 1 not zero, 1 is the first row after notation of the current coloumn
            for (int i = 1; i <= range.Rows.Count; i++)
            {
                Microsoft.Office.Interop.Excel.Range myrange = myworksheet.get_Range(/*your column letter, ex: "A" or "B"*/ + i.ToString(), System.Reflection.Missing.Value);
                string temp = myrange.Text;
                if(temp.Contains("YES"))
                {
                    //Do your YES logic
                }
                else if(temp.Contains("NO"))
                {
                    //Do your No Logic
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a WPF application that sometimes exhibits odd problems and appears to
I am working on a WPF application which has a treeview that represents an
I'm working on a WPF application which should be utilizable with two monitors. In
I have a project I'm working on that requires our WPF application read SMS
I was working with a WPF application and I decided that the controls and
I am working on an WPF application that uses a BusinessLogic layer (currently a
I'm working on a WPF application that displays video clips as part of the
I'm working on a WPF application that has no main window (it runs in
I have a working WPF application. I would like to see it running as
I am working on a WPF application that requires .NET 4.0 to run. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.