ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Conditional Formatting icon change type problem (https://www.excelbanter.com/excel-programming/390043-conditional-formatting-icon-change-type-problem.html)

Stephen Plotnick

Conditional Formatting icon change type problem
 
I'm building an Excel 2007 spreadsheet via VB 2005 and I'm trying to do some
conditional formatting with icon sets

I'm able to create an icon with the Green or Red traffic light (this must be
the default). When I try to change to the 5 arrow the VSE does not flag my
code as an error but at run time I get the following message.

Public member iconsets and type worksheet not found.

Here is the code to change the iconset.

cfIconSet.IconSet = osheet.IconSets(XlIconSet.xl5Arrows)

THanks,
Steve


Stephen Plotnick

Conditional Formatting icon change type problem
 
I figured out the problem.

In case someone else needs this I'm refencing the sheet and need to
reference the book.

Steve
"Stephen Plotnick" wrote in message
...
I'm building an Excel 2007 spreadsheet via VB 2005 and I'm trying to do
some conditional formatting with icon sets

I'm able to create an icon with the Green or Red traffic light (this must
be the default). When I try to change to the 5 arrow the VSE does not flag
my code as an error but at run time I get the following message.

Public member iconsets and type worksheet not found.

Here is the code to change the iconset.

cfIconSet.IconSet = osheet.IconSets(XlIconSet.xl5Arrows)

THanks,
Steve




All times are GMT +1. The time now is 02:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com