|
Macro excel - Somar celulas por cor
|
|
21-02-2014, 01:11
(Esta mensagem foi modificada pela última vez a: 21-02-2014 01:16 por nioxys.)
Mensagem: #2
|
|||
|
|||
|
RE: Macro excel - Somar celulas por cor
Olá
![]() Tens de alterar a propriedade, onde usas CellColor.Interior.ColorIndex tens de passar a usar CellColor.Font.Color , assim como no IF, tens If myCell.Interior.ColorIndex = iCol Then trocas por If myCell.Font.Color = iCol Then sendo o resultado final, Código: Function SumByColor(CellColor As Range, SumRange As Range)Espero ter ajudado.
“A neutron walks into a bar and asks how much for a drink. The bartender replies, ‘For you, no charge.’” - Sheldon Cooper |
|||
|
« Mais Antigo | Mais Recente »
|
| Mensagem neste Tópico |
|
Macro excel - Somar celulas por cor - 150max - 20-02-2014, 19:44
RE: Macro excel - Somar celulas por cor - nioxys - 21-02-2014 01:11
RE: Macro excel - Somar celulas por cor - 150max - 21-02-2014, 13:59
RE: Macro excel - Somar celulas por cor - nioxys - 21-02-2014, 14:59
RE: Macro excel - Somar celulas por cor - 150max - 21-02-2014, 15:24
RE: Macro excel - Somar celulas por cor - Cabritone - 21-02-2014, 16:26
RE: Macro excel - Somar celulas por cor - 150max - 21-02-2014, 16:34
RE: Macro excel - Somar celulas por cor - nioxys - 21-02-2014, 16:44
|
Utilizadores a ver este tópico: 1 Visitante(s)





