Hello again everyone!; Concerning Fig. 16.9, Page 347, VBA & Macros ("Excel")

Virgin

New Member
Joined
Jan 13, 2016
Messages
30
I understand the idea of having various icon sets as in "AddCrazyIcons()";

What I don't understand is how to specify the IconCriteria for the individual icons in each set;

In 2 earlier examples, there's the following object:

Dim ICS As IconSetCondition

Thank you
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
The code uses the default criteria, hence it doesn't set it.
if you want to affect the criteria rules, then you can use something like this:

Code:
With Range("A1:C10")
    Set ics = .FormatConditions.AddIconSetCondition
    .FormatConditions(1).IconSet = ActiveWorkbook.IconSets(xl3Flags)
etc.. with your criteria changes

I encourage you to experiment on your own and if you can't figure it out, post what you've tried tweaking to the general Excel questions forum where many members are available to help you.
 

Forum statistics

Threads
1,214,619
Messages
6,120,550
Members
448,970
Latest member
kennimack

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