Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 354
Default Reset conditional color VB

Hi
I used VBA to conditional color bar chart but when I run macro again it
paint on top of last coloring task.
How can I reset the function

Interior.ColorIndex= ....

to begin color my bar chart in fresh condition?
Thanks
Daniel



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Reset conditional color VB

Daniel

maybe:

Selection.Interior.ColorIndex = xlNone

For example:

With Selection.Interior
.ColorIndex = 6 ' set the colour to yellow
.Pattern = xlSolid
End With
Selection.Interior.ColorIndex = xlNone ' reset the colour

Or, if you want to change a specific cell:

Range("A1").Interior.ColorIndex = xlNone

Regards

Trevor


"Daniel" wrote in message
...
Hi
I used VBA to conditional color bar chart but when I run macro again it
paint on top of last coloring task.
How can I reset the function

Interior.ColorIndex= ....

to begin color my bar chart in fresh condition?
Thanks
Daniel





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to reset every other row color after sorting Trish Excel Discussion (Misc queries) 2 November 18th 09 07:32 PM
Reset Color Palette HZH Excel Discussion (Misc queries) 1 June 10th 08 10:55 PM
My Color Palette Reduced to 13 and will not Reset Brianne Keating Excel Discussion (Misc queries) 3 July 23rd 07 12:47 PM
How to reset color palette Albion1 Excel Discussion (Misc queries) 0 November 30th 06 01:06 PM
How do I reset my color palette in Excel? msandine Excel Discussion (Misc queries) 1 August 31st 05 01:11 AM


All times are GMT +1. The time now is 08:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"