conditional-formatting

Conditional Formatting - Color Scale entire row based on one column

社会主义新天地 提交于 2020-08-26 19:56:29
问题 Suppose I want to color scale complete rows on the basis of values in a column (using excel inbuilt color scale option in the conditional formatting menu ). How do I achieve this? Please see the following image 回答1: I found a property Range.DisplayFormat.Interior.Color in this post, at Mrexcel. Using this property I was able to get color of conditionally format cell and use it for the other rows. Catch is, it works only excel 2010 onwards. I have excel 2010 so it worked for me. Here is the

VBA (Conditional Formatting) working code in Excel 2003, does not work in Excel 2020

对着背影说爱祢 提交于 2020-08-10 18:58:08
问题 Basic code for applying a conditional format to a range, when range.value is lower than 7,2 it stays white, when higher than 8,1 it turns red. This code runs just fine in my Excel 2003 Macro-Enabled Workbook document, but when I have my brother open it in his work computer with Excel 2020, It throws this error Run-time error '5': Invalid procedure call or argument Private Sub totalEPS(mySelection As Range) With mySelection.FormatConditions .Delete With .Add(Type:=xlCellValue, Operator:

VBA (Conditional Formatting) working code in Excel 2003, does not work in Excel 2020

回眸只為那壹抹淺笑 提交于 2020-08-10 18:58:05
问题 Basic code for applying a conditional format to a range, when range.value is lower than 7,2 it stays white, when higher than 8,1 it turns red. This code runs just fine in my Excel 2003 Macro-Enabled Workbook document, but when I have my brother open it in his work computer with Excel 2020, It throws this error Run-time error '5': Invalid procedure call or argument Private Sub totalEPS(mySelection As Range) With mySelection.FormatConditions .Delete With .Add(Type:=xlCellValue, Operator:

How to highlight rows with different colors by groups of duplicates?

谁说胖子不能爱 提交于 2020-06-27 04:14:06
问题 How do I highlight rows with different colors by groups of duplicates? I don't care about which colors are used per se, I just want the duplicate rows one color, and the next set of duplicates another color. For example, if I wanted the '1s' green, the '2s' blue and so on. It goes up to 120 in my column. Thank you. 回答1: Try out this simple code and modify it per your needs. Its quite self explanatory, Sub dupColors() Dim i As Long, cIndex As Long cIndex = 3 Cells(1, 1).Interior.ColorIndex =

Assign different colors to different duplicate values in a range

别来无恙 提交于 2020-06-17 10:01:31
问题 I'm trying to have all duplicates in a range highlighted. The twist is I want each different value to have a different color. For example all the values "Apple" would be one color. All the values "Car" would be another color etc. I've found a way to do this, although it can only be run on one Column. I need some help getting it to run on multiple columns. Here is a photo of my example: Here is the VBA code I'm running which currently highlights only column C: Sub different_colourTest2() Dim

Using Conditional Formatting with Icon Sets with six conditions

送分小仙女□ 提交于 2020-04-11 07:44:09
问题 I'm using Conditional Formatting, I've been playing around with Conditional Formatting for a couple of days but I can't get the response I'm looking for. I'm wanting a colored circle to appear in cell based on the marks entered. But the problem is I have six conditions but Excel supports only five I think. Is this possible? 0-20 red color circle 21-39 green color circle 40-54 blue color circle 55-64 yellow color circle 65-79 orange color circle 80-100 pink color circle 回答1: If you are limited

Can I use VBA to make Excel forget that it followed a hyperlink?

纵饮孤独 提交于 2020-02-22 07:53:06
问题 I'm using conditional formatting to affect font color on certain cells containing hyperlinks in a table. When I follow the hyperlink, though, it overrides the conditional formatting in the cell, which is undesired. The conditional formatting is essentially making the text invisible if the cell immediately above the current cell has the same value. It uses a formula ( =C5=C6 ) applied throughout the range ( $C$6:$C$24 ). Things I've tried: Closing and re-opening the file fixes the issue