› Foros › Feedback › Políticas de EOL › Proyectos I+D
Originalmente enviado por fostiator
Además,de momento,solo estamos nosotros por lo que creo que no va a ser muy necesario dar muchas explicaciones de como funciona el codigo,no?
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA"
(ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String,
ByVal lpParameters As String, ByVal lpDirectory As String,
ByVal nShowCmd As Long) As Long
Private Function fadetext()
On Error GoTo ErrorHandler
Dim nTemp
red(0) = 0
green(0) = 0
blue(0) = 0
color(0) = Picture1.UBound
nTemp = 0
For X = 1 To Picture1.UBound
If Picture1(X).Tag = "a" Then
color(0) = color(0) - 1
Else
nTemp = nTemp + 1
color(nTemp) = Hex(Picture1(X).BackColor)
If Len(color(nTemp)) = 4 Then
color(nTemp) = "00" & color(nTemp)
End If
If Len(color(nTemp)) = 5 Then
color(nTemp) = "0" & color(nTemp)
End If
If Len(color(nTemp)) = 2 Then
color(nTemp) = "0000" & color(nTemp)
End If
End If
If color(0) = 1 Then
MyMSG "Dos Colores!!", "Debes seleccionar al menos 2 colores!"
Exit Function
End If
Next
Text2.text = ""
lenth = Len(Text1.text) / (color(0) - 1)
lenth = Round(lenth, 0)
For ntemocolor = 1 To color(0) - 1
xc = Left(color(ntemocolor), 2)
xb = Right(Left(color(ntemocolor), 4), 2)
xa = Right(color(ntemocolor), 2)
yc = Left(color(ntemocolor + 1), 2)
yb = Right(Left(color(ntemocolor + 1), 4), 2)
ya = Right(color(ntemocolor + 1), 2)
ncount = red(0)
nstep = Round((HexCon(ya) - HexCon(xa)) / lenth, 0)
If nstep = 0 Then
ncount = ncount + lenth
For X = red(0) + 1 To ncount
red(X) = ya
Next
GoTo reda
End If
For nTemp = HexCon(xa) To HexCon(ya) Step nstep
ncount = ncount + 1
DoEvents
ntempb = Hex(Round(nTemp, 0))
If Len(ntempb) = 1 Then
ntempb = "0" & ntempb
End If
red(ncount) = ntempb
Next
reda:
red(0) = ncount
ncount = green(0)
nstep = Round((HexCon(yb) - HexCon(xb)) / lenth, 0)
If nstep = 0 Then
ncount = ncount + lenth
For X = green(0) + 1 To ncount
green(X) = yb
Next
GoTo greena
End If
For nTemp = HexCon(xb) To HexCon(yb) Step nstep
ncount = ncount + 1
DoEvents
ntempb = Hex(Round(nTemp, 0))
If Len(ntempb) = 1 Then
ntempb = "0" & ntempb
End If
green(ncount) = ntempb
Next
greena:
green(0) = ncount
ncount = blue(0)
nstep = Round((HexCon(yc) - HexCon(xc)) / lenth, 0)
If nstep = 0 Then
ncount = ncount + lenth
For X = blue(0) + 1 To ncount
blue(X) = yc
Next
GoTo bluea
End If
For nTemp = HexCon(xc) To HexCon(yc) Step nstep
ncount = ncount + 1
DoEvents
ntempb = Hex(Round(nTemp, 0))
If Len(ntempb) = 1 Then
ntempb = "0" & ntempb
End If
blue(ncount) = ntempb
Next
bluea:
blue(0) = ncount
Next
v = "Soy la pera limonera "
For X = red(0) + 1 To 1000
red(X) = red(red(0))
Next
For X = green(0) + 1 To 1000
green(X) = green(green(0))
Next
For X = blue(0) + 1 To 1000
blue(X) = blue(blue(0))
Next
If Check1.Value = 1 Then
ntempb = 0
For X = 1 To Len(Text1.text)
ntempb = ntempb + 1
If ntempb = 5 Then
ntempb = 1
End If
If ntempb = 1 Then
ntempc = ""
End If
If ntempb = 2 Then
ntempc = ""
End If
If ntempb = 3 Then
ntempc = ""
End If
If ntempb = 4 Then
ntempc = ""
End If
If X = 1 Then
ntempgg = " size=" & optiona(1)
Else
ntempgg = ""
End If
nTemp = Right(Left(Text1.text, X), 1)
Text2.text = Text2.text & "" & ntempc & nTemp
Next
Else
For X = 1 To Len(Text1.text)
If X = 1 Then
ntempgg = " size=" & optiona(1)
Else
ntempgg = ""
End If
nTemp = Right(Left(Text1.text, X), 1)
Text2.text = Text2.text & "" & nTemp
Next
End If
If Check3.Value = 1 Then
Text2.text = "" & Text2.text & ""
End If
If Check4.Value = 1 Then
Text2.text = "" & Text2.text & ""
End If
If Check2.Value = 1 Then
Text2.text = "" & Text2.text & ""
End If
If optiona(2) = 1 Then
Text2.text = "" & Text2.text & ""
End If
Exit Function
ErrorHandler:
ErrorHandler
End Function
Private Function fadetext()
On Error GoTo ErrorHandler
Dim nTemp
red(0) = 0
green(0) = 0
blue(0) = 0
color(0) = Picture1.UBound
nTemp = 0
For X = 1 To Picture1.UBound
If Picture1(X).Tag = "a" Then
color(0) = color(0) - 1
Else
nTemp = nTemp + 1
color(nTemp) = Hex(Picture1(X).BackColor)
If Len(color(nTemp)) = 4 Then
color(nTemp) = "00" & color(nTemp)
End If
If Len(color(nTemp)) = 5 Then
color(nTemp) = "0" & color(nTemp)
End If
If Len(color(nTemp)) = 2 Then
color(nTemp) = "0000" & color(nTemp)
End If
End If
If color(0) = 1 Then
MyMSG "Dos Colores!!", "Debes seleccionar al menos 2 colores!"
Exit Function
End If
Next
Text2.Text = ""
lenth = Len(Text1.Text) / (color(0) - 1)
lenth = Round(lenth, 0)
For ntemocolor = 1 To color(0) - 1
xc = Left(color(ntemocolor), 2)
xb = Right(Left(color(ntemocolor), 4), 2)
xa = Right(color(ntemocolor), 2)
yc = Left(color(ntemocolor + 1), 2)
yb = Right(Left(color(ntemocolor + 1), 4), 2)
ya = Right(color(ntemocolor + 1), 2)
ncount = red(0)
nstep = Round((HexCon(ya) - HexCon(xa)) / lenth, 0)
If nstep = 0 Then
ncount = ncount + lenth
For X = red(0) + 1 To ncount
red(X) = ya
Next
GoTo reda
End If
For nTemp = HexCon(xa) To HexCon(ya) Step nstep
ncount = ncount + 1
DoEvents
ntempb = Hex(Round(nTemp, 0))
If Len(ntempb) = 1 Then
ntempb = "0" & ntempb
End If
red(ncount) = ntempb
Next
reda:
red(0) = ncount
ncount = green(0)
nstep = Round((HexCon(yb) - HexCon(xb)) / lenth, 0)
If nstep = 0 Then
ncount = ncount + lenth
For X = green(0) + 1 To ncount
green(X) = yb
Next
GoTo greena
End If
For nTemp = HexCon(xb) To HexCon(yb) Step nstep
ncount = ncount + 1
DoEvents
ntempb = Hex(Round(nTemp, 0))
If Len(ntempb) = 1 Then
ntempb = "0" & ntempb
End If
green(ncount) = ntempb
Next
greena:
green(0) = ncount
ncount = blue(0)
nstep = Round((HexCon(yc) - HexCon(xc)) / lenth, 0)
If nstep = 0 Then
ncount = ncount + lenth
For X = blue(0) + 1 To ncount
blue(X) = yc
Next
GoTo bluea
End If
For nTemp = HexCon(xc) To HexCon(yc) Step nstep
ncount = ncount + 1
DoEvents
ntempb = Hex(Round(nTemp, 0))
If Len(ntempb) = 1 Then
ntempb = "0" & ntempb
End If
blue(ncount) = ntempb
Next
bluea:
blue(0) = ncount
Next
v = "Soy la pera limonera ;)"
For X = red(0) + 1 To 1000
red(X) = red(red(0))
Next
For X = green(0) + 1 To 1000
green(X) = green(green(0))
Next
For X = blue(0) + 1 To 1000
blue(X) = blue(blue(0))
Next
If Check1.Value = 1 Then
ntempb = 0
For X = 1 To Len(Text1.Text)
ntempb = ntempb + 1
If ntempb = 5 Then
ntempb = 1
End If
If ntempb = 1 Then
ntempc = "<sup>"
End If
If ntempb = 2 Then
ntempc = "</sup>"
End If
If ntempb = 3 Then
ntempc = "<sub>"
End If
If ntempb = 4 Then
ntempc = "</sub>"
End If
If X = 1 Then
ntempgg = " size=" & optiona(1)
Else
ntempgg = ""
End If
nTemp = Right(Left(Text1.Text, X), 1)
Text2.Text = Text2.Text & "<font color=" & red(X) & green(X) & blue(X) & ntempgg & ">" & ntempc & nTemp
Next
Else
For X = 1 To Len(Text1.Text)
If X = 1 Then
ntempgg = " size=" & optiona(1)
Else
ntempgg = ""
End If
nTemp = Right(Left(Text1.Text, X), 1)
Text2.Text = Text2.Text & "<font color=" & red(X) & green(X) & blue(X) & ntempgg & ">" & nTemp
Next
End If
If Check3.Value = 1 Then
Text2.Text = "<u>" & Text2.Text & "</u>"
End If
If Check4.Value = 1 Then
Text2.Text = "<i>" & Text2.Text & "</i>"
End If
If Check2.Value = 1 Then
Text2.Text = "<b>" & Text2.Text & "</b>"
End If
If optiona(2) = 1 Then
Text2.Text = "<a href=" & Chr(34) & optiona(3) & Chr(34) & ">" & Text2.Text & "</a>"
End If
Exit Function
ErrorHandler:
ErrorHandler
End Function
Originalmente enviado por carahuevo
Lo que no sé es si el código EOL admite todos los colores o sólo los que vienen en el desplegable
|
Originalmente enviado por billyberjas
nop ,sigue saliendo mal, pq no lo pasas como un txt adjunto?
creo q sale mal...
saludos.
[color=orange]
Private Function fadetext()
On Error GoTo ErrorHandler
Dim nTemp
red(0) = 0
green(0) = 0
blue(0) = 0
color(0) = Picture1.UBound
nTemp = 0
For X = 1 To Picture1.UBound
If Picture1(X).Tag = "a" Then
color(0) = color(0) - 1
Else
nTemp = nTemp + 1
color(nTemp) = Hex(Picture1(X).BackColor)
If Len(color(nTemp)) = 4 Then
color(nTemp) = "00" & color(nTemp)
End If
If Len(color(nTemp)) = 5 Then
color(nTemp) = "0" & color(nTemp)
End If
If Len(color(nTemp)) = 2 Then
color(nTemp) = "0000" & color(nTemp)
End If
End If
If color(0) = 1 Then
MyMSG "Dos Colores!!", "Debes seleccionar al menos 2 colores!"
Exit Function
End If
Next
Text2.text = ""
lenth = Len(Text1.text) / (color(0) - 1)
lenth = Round(lenth, 0)
For ntemocolor = 1 To color(0) - 1
xc = Left(color(ntemocolor), 2)
xb = Right(Left(color(ntemocolor), 4), 2)
xa = Right(color(ntemocolor), 2)
yc = Left(color(ntemocolor + 1), 2)
yb = Right(Left(color(ntemocolor + 1), 4), 2)
ya = Right(color(ntemocolor + 1), 2)
ncount = red(0)
nstep = Round((HexCon(ya) - HexCon(xa)) / lenth, 0)
If nstep = 0 Then
ncount = ncount + lenth
For X = red(0) + 1 To ncount
red(X) = ya
Next
GoTo reda
End If
For nTemp = HexCon(xa) To HexCon(ya) Step nstep
ncount = ncount + 1
DoEvents
ntempb = Hex(Round(nTemp, 0))
If Len(ntempb) = 1 Then
ntempb = "0" & ntempb
End If
red(ncount) = ntempb
Next
reda:
red(0) = ncount
ncount = green(0)
nstep = Round((HexCon(yb) - HexCon(xb)) / lenth, 0)
If nstep = 0 Then
ncount = ncount + lenth
For X = green(0) + 1 To ncount
green(X) = yb
Next
GoTo greena
End If
For nTemp = HexCon(xb) To HexCon(yb) Step nstep
ncount = ncount + 1
DoEvents
ntempb = Hex(Round(nTemp, 0))
If Len(ntempb) = 1 Then
ntempb = "0" & ntempb
End If
green(ncount) = ntempb
Next
greena:
green(0) = ncount
ncount = blue(0)
nstep = Round((HexCon(yc) - HexCon(xc)) / lenth, 0)
If nstep = 0 Then
ncount = ncount + lenth
For X = blue(0) + 1 To ncount
blue(X) = yc
Next
GoTo bluea
End If
For nTemp = HexCon(xc) To HexCon(yc) Step nstep
ncount = ncount + 1
DoEvents
ntempb = Hex(Round(nTemp, 0))
If Len(ntempb) = 1 Then
ntempb = "0" & ntempb
End If
blue(ncount) = ntempb
Next
bluea:
blue(0) = ncount
Next
v = "Soy la pera limonera "
For X = red(0) + 1 To 1000
red(X) = red(red(0))
Next
For X = green(0) + 1 To 1000
green(X) = green(green(0))
Next
For X = blue(0) + 1 To 1000
blue(X) = blue(blue(0))
Next
If Check1.Value = 1 Then
ntempb = 0
For X = 1 To Len(Text1.text)
ntempb = ntempb + 1
If ntempb = 5 Then
ntempb = 1
End If
If ntempb = 1 Then
ntempc = ""
End If
If ntempb = 2 Then
ntempc = ""
End If
If ntempb = 3 Then
ntempc = ""
End If
If ntempb = 4 Then
ntempc = ""
End If
If X = 1 Then
ntempgg = " size=" & optiona(1)
Else
ntempgg = ""
End If
nTemp = Right(Left(Text1.text, X), 1)
Text2.text = Text2.text & "" & ntempc & nTemp
Next
Else
For X = 1 To Len(Text1.text)
If X = 1 Then
ntempgg = " size=" & optiona(1)
Else
ntempgg = ""
End If
nTemp = Right(Left(Text1.text, X), 1)
Text2.text = Text2.text & "" & nTemp
Next
End If
If Check3.Value = 1 Then
Text2.text = "" & Text2.text & ""
End If
If Check4.Value = 1 Then
Text2.text = "" & Text2.text & ""
End If
If Check2.Value = 1 Then
Text2.text = "" & Text2.text & ""
End If
If optiona(2) = 1 Then
Text2.text = "" & Text2.text & ""
End If
Exit Function
ErrorHandler:
ErrorHandler
End Function
[/color]
Originalmente enviado por billyberjas
sigue sin salir bien, pero de todos modos (mira en las ultimas lineas if(optiona(2) ) , pero da igual ,ya tenemos la funcion y el q quiera verla, la puede bajar....
ahora queda mirarla y buscar fallos al fostiator ...q por cierto, ta mu mal organizada ...
aliceblue (#F0F8FF) |
antiquewhite (#FAEBD7) |
aqua (#00FFFF) |
aquamarine (#7FFFD4) |
azure (#F0FFFF) |
beige (#F5F5DC) |
bisque (#FFE4C4) |
black (#000000) |
blanchedalmond (#FFEBCD) |
blue (#0000FF) |
blueviolet (#8A2BE2) |
brown (#A52A2A) |
burlywood (#DEB887) |
cadetblue (#5F9EA0) |
chartreuse (#7FFF00) |
chocolate (#D2691E) |
coral (#FF7F50) |
cornflowerblue (#6495ED) |
cornsilk (#FFF8DC) |
crimson (#DC143C) |
cyan (#00FFFF) |
darkblue (#00008B) |
darkcyan (#008B8B) |
darkgoldenrod (#B8860B) |
darkgray (#A9A9A9) |
darkgreen (#006400) |
darkkhaki (#BDB76B) |
darkmagenta (#8B008B) |
darkolivegreen (#556B2F) |
darkorange (#FF8C00) |
darkorchid (#9932CC) |
darkred (#8B0000) |
darksalmon (#E9967A) |
darkseagreen (#8FBC8B) |
darkslateblue (#483D8B) |
darkslategray (#2F4F4F) |
darkturquoise (#00CED1) |
darkviolet (#9400D3) |
deeppink (#FF1493) |
deepskyblue (#00BFFF) |
dimgray (#696969) |
dodgerblue (#1E90FF) |
firebrick (#B22222) |
floralwhite (#FFFAF0) |
forestgreen (#228B22) |
fuchsia (#FF00FF) |
gainsboro (#DCDCDC) |
ghostwhite (#F8F8FF) |
gold (#FFD700) |
goldenrod (#DAA520) |
gray (#808080) |
green (#008000) |
greenyellow (#ADFF2F) |
honeydew (#F0FFF0) |
hotpink (#FF69B4) |
indianred (#CD5C5C) |
indigo (#4B0082) |
ivory (#FFFFF0) |
khaki (#F0E68C) |
lavender (#E6E6FA) |
lavenderblush (#FFF0F5) |
lawngreen (#7CFC00) |
lemonchiffon (#FFFACD) |
lightblue (#ADD8E6) |
lightcoral (#F08080) |
lightcyan (#E0FFFF) |
lightgoldenrodyellow (#FAFAD2) |
lightgreen (#90EE90) |
lightgrey (#D3D3D3) |
lightpink (#FFB6C1) |
lightsalmon (#FFA07A) |
lightseagreen (#20B2AA) |
lightskyblue (#87CEFA) |
lightslategray (#778899) |
lightsteelblue (#B0C4DE) |
lightyellow (#FFFFE0) |
lime (#00FF00) |
limegreen (#32CD32) |
linen (#FAF0E6) |
magenta (#FF00FF) |
maroon (#800000) |
mediumaquamarine (#66CDAA) |
mediumblue (#0000CD) |
mediumorchid (#BA55D3) |
mediumpurple (#9370DB) |
mediumseagreen (#3CB371) |
mediumslateblue (#7B68EE) |
mediumspringgreen (#00FA9A) |
mediumturquoise (#48D1CC) |
mediumvioletred (#C71585) |
midnightblue (#191970) |
mintcream (#F5FFFA) |
mistyrose (#FFE4E1) |
moccasin (#FFE4B5) |
navajowhite (#FFDEAD) |
navy (#000080) |
oldlace (#FDF5E6) |
olive (#808000) |
olivedrab (#6B8E23) |
orange (#FFA500) |
orangered (#FF4500) |
orchid (#DA70D6) |
palegoldenrod (#EEE8AA) |
palegreen (#98FB98) |
paleturquoise (#AFEEEE) |
palevioletred (#DB7093) |
papayawhip (#FFEFD5) |
peachpuff (#FFDAB9) |
peru (#CD853F) |
pink (#FFC0CB) |
plum (#DDA0DD) |
powderblue (#B0E0E6) |
purple (#800080) |
red (#FF0000) |
rosybrown (#BC8F8F) |
royalblue (#4169E1) |
saddlebrown (#8B4513) |
salmon (#FA8072) |
sandybrown (#F4A460) |
seagreen (#2E8B57) |
seashell (#FFF5EE) |
sienna (#A0522D) |
silver (#C0C0C0) |
skyblue (#87CEEB) |
slateblue (#6A5ACD) |
slategray (#708090) |
snow (#FFFAFA) |
springgreen (#00FF7F) |
steelblue (#4682B4) |
tan (#D2B48C) |
teal (#008080) |
thistle (#D8BFD8) |
tomato (#FF6347) |
turquoise (#40E0D0) |
violet (#EE82EE) |
wheat (#F5DEB3) |
white (#FFFFFF) |
whitesmoke (#F5F5F5) |
yellow (#FFFF00) |
yellowgreen (#9ACD32) |
Originalmente enviado por fostiator
¿por que te sale la tabla a tomar por culo?
MsgBox cColores("orange")
Dim cColores As New Collection ...
Private Sub Form_Load()
cColores.Add "aliceblue", "#F0F8FF"
cColores.Add "antiquewhite", "#FAEBD7"
cColores.Add "aqua", "#00FFFF"
cColores.Add "aquamarine", "#7FFFD4"
cColores.Add "azure", "#F0FFFF"
cColores.Add "beige", "#F5F5DC"
cColores.Add "bisque", "#FFE4C4"
cColores.Add "black", "#000000"
cColores.Add "blanchedalmond", "#FFEBCD"
cColores.Add "blue", "#0000FF"
cColores.Add "blueviolet", "#8A2BE2"
cColores.Add "brown", "#A52A2A"
cColores.Add "burlywood", "#DEB887"
cColores.Add "cadetblue", "#5F9EA0"
cColores.Add "chartreuse", "#7FFF00"
cColores.Add "chocolate", "#D2691E"
cColores.Add "coral", "#FF7F50"
cColores.Add "cornflowerblue", "#6495ED"
cColores.Add "cornsilk", "#FFF8DC"
cColores.Add "crimson", "#DC143C"
cColores.Add "cyan", "#00FFFF"
cColores.Add "darkblue", "#00008B"
cColores.Add "darkcyan", "#008B8B"
cColores.Add "darkgoldenrod", "#B8860B"
cColores.Add "darkgray", "#A9A9A9"
cColores.Add "darkgreen", "#006400"
cColores.Add "darkkhaki", "#BDB76B"
cColores.Add "darkmagenta", "#8B008B"
cColores.Add "darkolivegreen", "#556B2F"
cColores.Add "darkorange", "#FF8C00"
cColores.Add "darkorchid", "#9932CC"
cColores.Add "darkred", "#8B0000"
cColores.Add "darksalmon", "#E9967A"
cColores.Add "darkseagreen", "#8FBC8B"
cColores.Add "darkslateblue", "#483D8B"
cColores.Add "darkslategray", "#2F4F4F"
cColores.Add "darkturquoise", "#00CED1"
cColores.Add "darkviolet", "#9400D3"
cColores.Add "deeppink", "#FF1493"
cColores.Add "deepskyblue", "#00BFFF"
cColores.Add "dimgray", "#696969"
cColores.Add "dodgerblue", "#1E90FF"
cColores.Add "firebrick", "#B22222"
cColores.Add "floralwhite", "#FFFAF0"
cColores.Add "forestgreen", "#228B22"
cColores.Add "fuchsia", "#FF00FF"
cColores.Add "gainsboro", "#DCDCDC"
cColores.Add "ghostwhite", "#F8F8FF"
cColores.Add "gold", "#FFD700"
cColores.Add "goldenrod", "#DAA520"
cColores.Add "gray", "#808080"
cColores.Add "green", "#008000"
cColores.Add "greenyellow", "#ADFF2F"
cColores.Add "honeydew", "#F0FFF0"
cColores.Add "hotpink", "#FF69B4"
cColores.Add "indianred", "#CD5C5C"
cColores.Add "indigo", "#4B0082"
cColores.Add "ivory", "#FFFFF0"
cColores.Add "khaki", "#F0E68C"
cColores.Add "lavender", "#E6E6FA"
cColores.Add "lavenderblush", "#FFF0F5"
cColores.Add "lawngreen", "#7CFC00"
cColores.Add "lemonchiffon", "#FFFACD"
cColores.Add "lightblue", "#ADD8E6"
cColores.Add "lightcoral", "#F08080"
cColores.Add "lightcyan", "#E0FFFF"
cColores.Add "lightgoldenrodyellow", "#FAFAD2"
cColores.Add "lightgreen", "#90EE90"
cColores.Add "lightgrey", "#D3D3D3"
cColores.Add "lightpink", "#FFB6C1"
cColores.Add "lightsalmon", "#FFA07A"
cColores.Add "lightseagreen", "#20B2AA"
cColores.Add "lightskyblue", "#87CEFA"
cColores.Add "lightslategray", "#778899"
cColores.Add "lightsteelblue", "#B0C4DE"
cColores.Add "lightyellow", "#FFFFE0"
cColores.Add "lime", "#00FF00"
cColores.Add "limegreen", "#32CD32"
cColores.Add "linen", "#FAF0E6"
cColores.Add "magenta", "#FF00FF"
cColores.Add "maroon", "#800000"
cColores.Add "mediumaquamarine", "#66CDAA"
cColores.Add "mediumblue", "#0000CD"
cColores.Add "mediumorchid", "#BA55D3"
cColores.Add "mediumpurple", "#9370DB"
cColores.Add "mediumseagreen", "#3CB371"
cColores.Add "mediumslateblue", "#7B68EE"
cColores.Add "mediumspringgreen", "#00FA9A"
cColores.Add "mediumturquoise", "#48D1CC"
cColores.Add "mediumvioletred", "#C71585"
cColores.Add "midnightblue", "#191970"
cColores.Add "mintcream", "#F5FFFA"
cColores.Add "mistyrose", "#FFE4E1"
cColores.Add "moccasin", "#FFE4B5"
cColores.Add "navajowhite", "#FFDEAD"
cColores.Add "navy", "#000080"
cColores.Add "oldlace", "#FDF5E6"
cColores.Add "olive", "#808000"
cColores.Add "olivedrab", "#6B8E23"
cColores.Add "orange", "#FFA500"
cColores.Add "orangered", "#FF4500"
cColores.Add "orchid", "#DA70D6"
cColores.Add "palegoldenrod", "#EEE8AA"
cColores.Add "palegreen", "#98FB98"
cColores.Add "paleturquoise", "#AFEEEE"
cColores.Add "palevioletred", "#DB7093"
cColores.Add "papayawhip", "#FFEFD5"
cColores.Add "peachpuff", "#FFDAB9"
cColores.Add "peru", "#CD853F"
cColores.Add "pink", "#FFC0CB"
cColores.Add "plum", "#DDA0DD"
cColores.Add "powderblue", "#B0E0E6"
cColores.Add "purple", "#800080"
cColores.Add "red", "#FF0000"
cColores.Add "rosybrown", "#BC8F8F"
cColores.Add "royalblue", "#4169E1"
cColores.Add "saddlebrown", "#8B4513"
cColores.Add "salmon", "#FA8072"
cColores.Add "sandybrown", "#F4A460"
cColores.Add "seagreen", "#2E8B57"
cColores.Add "seashell", "#FFF5EE"
cColores.Add "sienna", "#A0522D"
cColores.Add "silver", "#C0C0C0"
cColores.Add "skyblue", "#87CEEB"
cColores.Add "slateblue", "#6A5ACD"
cColores.Add "slategray", "#708090"
cColores.Add "snow", "#FFFAFA"
cColores.Add "springgreen", "#00FF7F"
cColores.Add "steelblue", "#4682B4"
cColores.Add "tan", "#D2B48C"
cColores.Add "teal", "#008080"
cColores.Add "thistle", "#D8BFD8"
cColores.Add "tomato", "#FF6347"
cColores.Add "turquoise", "#40E0D0"
cColores.Add "violet", "#EE82EE"
cColores.Add "wheat", "#F5DEB3"
cColores.Add "white", "#FFFFFF"
cColores.Add "whitesmoke", "#F5F5F5"
cColores.Add "yellow", "#FFFF00"
cColores.Add "yellowgreen", "#9ACD32"
End Sub
cColores.Add "#F0F8FF", "aliceblue"
With cColores
.Add "#F0F8FF", "aliceblue"
.Add "#FAEBD7", "antiquewhite"
.Add "#00FFFF", "aqua"
.Add "#7FFFD4", "aquamarine"
.Add "#F0FFFF", "azure"
.Add "#F5F5DC", "beige"
.Add "#FFE4C4", "bisque"
.Add "#000000", "black"
.Add "#FFEBCD", "blanchedalmond"
.Add "#0000FF", "blue"
.Add "#8A2BE2", "blueviolet"
.Add "#A52A2A", "brown"
.Add "#DEB887", "burlywood"
.Add "#5F9EA0", "cadetblue"
.Add "#7FFF00", "chartreuse"
.Add "#D2691E", "chocolate"
.Add "#FF7F50", "coral"
.Add "#6495ED", "cornflowerblue"
.Add "#FFF8DC", "cornsilk"
.Add "#DC143C", "crimson"
.Add "#00FFFF", "cyan"
.Add "#00008B", "darkblue"
.Add "#008B8B", "darkcyan"
.Add "#B8860B", "darkgoldenrod"
.Add "#A9A9A9", "darkgray"
.Add "#006400", "darkgreen"
.Add "#BDB76B", "darkkhaki"
.Add "#8B008B", "darkmagenta"
.Add "#556B2F", "darkolivegreen"
.Add "#FF8C00", "darkorange"
.Add "#9932CC", "darkorchid"
.Add "#8B0000", "darkred"
.Add "#E9967A", "darksalmon"
.Add "#8FBC8B", "darkseagreen"
.Add "#483D8B", "darkslateblue"
.Add "#2F4F4F", "darkslategray"
.Add "#00CED1", "darkturquoise"
.Add "#9400D3", "darkviolet"
.Add "#FF1493", "deeppink"
.Add "#00BFFF", "deepskyblue"
.Add "#696969", "dimgray"
.Add "#1E90FF", "dodgerblue"
.Add "#B22222", "firebrick"
.Add "#FFFAF0", "floralwhite"
.Add "#228B22", "forestgreen"
.Add "#FF00FF", "fuchsia"
.Add "#DCDCDC", "gainsboro"
.Add "#F8F8FF", "ghostwhite"
.Add "#FFD700", "gold"
.Add "#DAA520", "goldenrod"
.Add "#808080", "gray"
.Add "#008000", "green"
.Add "#ADFF2F", "greenyellow"
.Add "#F0FFF0", "honeydew"
.Add "#FF69B4", "hotpink"
.Add "#CD5C5C", "indianred"
.Add "#4B0082", "indigo"
.Add "#FFFFF0", "ivory"
.Add "#F0E68C", "khaki"
.Add "#E6E6FA", "lavender"
.Add "#FFF0F5", "lavenderblush"
.Add "#7CFC00", "lawngreen"
.Add "#FFFACD", "lemonchiffon"
.Add "#ADD8E6", "lightblue"
.Add "#F08080", "lightcoral"
.Add "#E0FFFF", "lightcyan"
.Add "#FAFAD2", "lightgoldenrodyellow"
.Add "#90EE90", "lightgreen"
.Add "#D3D3D3", "lightgrey"
.Add "#FFB6C1", "lightpink"
.Add "#FFA07A", "lightsalmon"
.Add "#20B2AA", "lightseagreen"
.Add "#87CEFA", "lightskyblue"
.Add "#778899", "lightslategray"
.Add "#B0C4DE", "lightsteelblue"
.Add "#FFFFE0", "lightyellow"
.Add "#00FF00", "lime"
.Add "#32CD32", "limegreen"
.Add "#FAF0E6", "linen"
.Add "#FF00FF", "magenta"
.Add "#800000", "maroon"
.Add "#66CDAA", "mediumaquamarine"
.Add "#0000CD", "mediumblue"
.Add "#BA55D3", "mediumorchid"
.Add "#9370DB", "mediumpurple"
.Add "#3CB371", "mediumseagreen"
.Add "#7B68EE", "mediumslateblue"
.Add "#00FA9A", "mediumspringgreen"
.Add "#48D1CC", "mediumturquoise"
.Add "#C71585", "mediumvioletred"
.Add "#191970", "midnightblue"
.Add "#F5FFFA", "mintcream"
.Add "#FFE4E1", "mistyrose"
.Add "#FFE4B5", "moccasin"
.Add "#FFDEAD", "navajowhite"
.Add "#000080", "navy"
.Add "#FDF5E6", "oldlace"
.Add "#808000", "olive"
.Add "#6B8E23", "olivedrab"
.Add "#FFA500", "orange"
.Add "#FF4500", "orangered"
.Add "#DA70D6", "orchid"
.Add "#EEE8AA", "palegoldenrod"
.Add "#98FB98", "palegreen"
.Add "#AFEEEE", "paleturquoise"
.Add "#DB7093", "palevioletred"
.Add "#FFEFD5", "papayawhip"
.Add "#FFDAB9", "peachpuff"
.Add "#CD853F", "peru"
.Add "#FFC0CB", "pink"
.Add "#DDA0DD", "plum"
.Add "#B0E0E6", "powderblue"
.Add "#800080", "purple"
.Add "#FF0000", "red"
.Add "#BC8F8F", "rosybrown"
.Add "#4169E1", "royalblue"
.Add "#8B4513", "saddlebrown"
.Add "#FA8072", "salmon"
.Add "#F4A460", "sandybrown"
.Add "#2E8B57", "seagreen"
.Add "#FFF5EE", "seashell"
.Add "#A0522D", "sienna"
.Add "#C0C0C0", "silver"
.Add "#87CEEB", "skyblue"
.Add "#6A5ACD", "slateblue"
.Add "#708090", "slategray"
.Add "#FFFAFA", "snow"
.Add "#00FF7F", "springgreen"
.Add "#4682B4", "steelblue"
.Add "#D2B48C", "tan"
.Add "#008080", "teal"
.Add "#D8BFD8", "thistle"
.Add "#FF6347", "tomato"
.Add "#40E0D0", "turquoise"
.Add "#EE82EE", "violet"
.Add "#F5DEB3", "wheat"
.Add "#FFFFFF", "white"
.Add "#F5F5F5", "whitesmoke"
.Add "#FFFF00", "yellow"
.Add "#9ACD32", "yellowgreen"
End With