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

  • SEARCH
  • Home
  • 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 8625207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:43:31+00:00 2026-06-12T07:43:31+00:00

I have an old macro that was working fine on Excel 2003 but creates

  • 0

I have an old macro that was working fine on Excel 2003 but creates issues with Excel 2010. The part that causes problems is:

If Not IsNull(someRange.FormatConditions(parActiveCondition).Interior.Color) Then
    locVisibleColor = someRange.FormatConditions(parActiveCondition).Interior.Color
End if

where parActiveCondition is the active conditional formatting number on someRange.

When the background is selected as “No Color”, someRange.FormatConditions(parActiveCondition).Interior.Color returns

  • Null in Excel 2003
  • 0 in Excel 2010

The problem is that a black background also returns 0. So in Excel 2010 it seems no longer possible to make the difference between a black background and no background color.

Does anybody know a workaround?

ps: I could obviously select a white background instead of “No Color” but I’d rather not change all the spreadsheets and conditional formatting rules.

  • 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-06-12T07:43:33+00:00Added an answer on June 12, 2026 at 7:43 am

    You could use a Boolean secondary check such as

    IsNull(someRange.FormatConditions(parActiveCondition).Interior.ColorIndex) 'or
    IsNull(someRange.FormatConditions(parActiveCondition).Interior.TintAndShade)
    

    when

    .FormatConditions(parActiveCondition).Interior.Color = 0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have refereed old questions and found that people face many issues after installing
The workbook has over 50 worksheets and I'm working through an old macro that
I have an Excel file that has a bunch of VBA and macro code
I have old text inside a div. I want that text to fly out
I have old code that uses size_t which IIRC comes from cstring.h. On OS
I have this old question but no answer works for me from online, the
I have an old skin that I need to adapt to the new MediaWiki
I have an old iOS app that I never distributed and am now trying
I'm working on re-writing an old build that was originally designed (or not, as
I've upgraded an old access 2003 database to access 2010. The original database was

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.