macro to Highlight all cells that are formulas

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,
i have a sheet with loads of formulas,
all i want to do is fill each cell that has a formula with the colour RGB 130,120,70
and place as thin boarder around it in RGB 255,255,75

please help[ if you can
tony
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Or with VBA
VBA Code:
Sub tonywatson()
   With ActiveSheet.UsedRange.SpecialCells(xlFormulas)
      .Interior.Color = RGB(130, 120, 70)
      .Borders.Color = RGB(255, 255, 75)
      .Borders.Weight = xlThin
   End With
End Sub
 
Upvote 0
Solution
Thank fluff, this is great,
Joe4, nice idea but I need the cells actullly filled in not just conditionally filled for other things i want to do on the page.
Thanks
Tony
 
Upvote 0
Joe4, nice idea but I need the cells actullly filled in not just conditionally filled for other things i want to do on the page.
OK, you haven't really given us any of that detail, so we really cannot make that determination/distinction.
I am curious why Conditional Formatting wouldn't work here.
 
Upvote 0

Forum statistics

Threads
1,215,008
Messages
6,122,672
Members
449,091
Latest member
peppernaut

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