VBA Excel - A színkódok

VBA Excel - A színkódok

Színes kódok

Az alábbi kép a színkódokat tartalmazza:

A minta munkafüzet letölthető innen: //cjoint.com/?DIqlTjoC61G

Az átalakítási funkció:

Ez a funkció lehetővé teszi, hogy a VBA színkódokat 1-től 56-ig ( Interior.ColorIndex ) konvertálja hosszú értékükre ( Interior.Color ):

 Funkció CouversionCouleurLong (Couleur As Integer) Hosszú Dim CouleursLng () CouleursLng = Array (0, 16777215, 255, 65280, 16711680, 65535, 16711935, 16776960, 128, 32768, 8388608, 32896, 8388736, 8421376, _1232256, 8421376, 16751001, 6697881, 13434879, 16777164, 6684774, 8421631, 13395456, 16764108, 8388608, 16711935, 65535, 16776960, 8388736, 128, 8421376, 16711680, 16763904, 16777164. 16737843, 13421619, 52377, 52479, 39423, 26367, 10053222, 9868950, 6697728, 6723891, 13056, 13107, 13209, 6697881, 10040115, 3355443, 16777215) 'En cas d'erreur colorie en noir Ha Couleur 56 Ezután CouversionCouleurLong = 0 CouversionCouleurLong = CouleursLng (Couleur) végfunkció 

Előző Cikk Következő Cikk

Top Tippek