Is interior.color different than fill?

JenniferMurphy

Well-known Member
Joined
Jul 23, 2011
Messages
2,532
Office Version
  1. 365
Platform
  1. Windows
I am working on a macro to highlight cells in a large table that meet some criteria. I had it partially working but have run into a problem.

I was setting what I thought was the Fill color using statements like this:

VBA Code:
Dim BGMax
BGMax = RGB(255, 255, 0)
Range(rnWins2).Cells(i, 2).Interior.Color = BGMax

Now that several cells are highlighted, I cannot change the background (fill?) color using the Fill dropdown.

Is interior.color different than fill?
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Bah! I have been hornswaggled! There was no mention of Conditional Formatting, only code & the 'Font' tab. I want a refund.
 
Upvote 0
Bah! I have been hornswaggled! There was no mention of Conditional Formatting, only code & the 'Font' tab. I want a refund.
It wasn't mentioned to Alex either.

Oh, that's hornswoggled and it means cheating, which did not occur here.
 
Upvote 0
The info you gave did not add up to your results. You left out additional info, ergo CHEAT!

LMAO, I am just messin' with ya.

#Bamboozled. :)
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top