Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Selection based on coloured cells?

Hi all,

Is it somehow possible to make a selection based on the red colors i
attached file?

In other words; iso manually creating the sheet "Part" based on sheet
"WINS" & "CONT" can this be done automatically...

... to come to a specific list shown in sheet "Overview"


I suppose I have to make use of VBA? Please keep in mind I have n
experience in this whatsoever..

Thank you for helping me out on this one !


Regards

Attachment filename: forit.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=66343
--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 430
Default Selection based on coloured cells?

Go to http://www.cpearson.com/excel/colors.htm
for any and all answers re "working with colored-cells".
HTH

"bluevortex " wrote in message
...
Hi all,

Is it somehow possible to make a selection based on the red colors in
attached file?

In other words; iso manually creating the sheet "Part" based on sheets
"WINS" & "CONT" can this be done automatically...

.. to come to a specific list shown in sheet "Overview"


I suppose I have to make use of VBA? Please keep in mind I have no
experience in this whatsoever..

Thank you for helping me out on this one !


Regards,

Attachment filename: forit.xls
Download attachment:

http://www.excelforum.com/attachment.php?postid=663430
---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Selection based on coloured cells?

Thank you for the quick response Jim!

I presume I have to start using next function ?


Function CountByColor(InRange As Range, _
WhatColorIndex As Integer, _
Optional OfText As Boolean = False) As Long
'
' This function return the number of cells in InRange with
' a background color, or if OfText is True a font color,
' equal to WhatColorIndex.
'
Dim Rng As Range
Application.Volatile True

For Each Rng In InRange.Cells
If OfText = True Then
CountByColor = CountByColor - _
(Rng.Font.ColorIndex = WhatColorIndex)
Else
CountByColor = CountByColor - _
(Rng.Interior.ColorIndex = WhatColorIndex)
End If
Next Rng

End Function


But then? What's next ? How can I get excel automatically make a
overview based on those colored cells?
As stated before; vba is not my kind of thing...

Anyone?:confused

--
Message posted from http://www.ExcelForum.com

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
Selection of Cells based on a criteria Scott Excel Discussion (Misc queries) 2 July 27th 07 04:47 PM
Auto populate several cells based on a selection from drop down li Sheldon Excel Discussion (Misc queries) 3 January 13th 06 08:12 PM
Prevent selection of cells, based on value of another? Stilla Excel Worksheet Functions 2 December 7th 05 05:41 PM
need to populate several cells based on drop down menu selection TerriF Excel Discussion (Misc queries) 1 May 18th 05 10:27 PM
Coloured cells based on formula Steve Elliott Excel Worksheet Functions 1 March 10th 05 06:21 PM


All times are GMT +1. The time now is 01:20 PM.

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

About Us

"It's about Microsoft Excel"