I don't understand why this code works:
Code:
Dim BlueLite As String 'Light blue RBG values
BlueLite = "219,229,241" '.
Dim RGBVals As Variant 'Array for indivicdual RGB values
RGBVals = Split(BlueLite, ",") '.
But this code gets a runtime error '13' (Type mismatch):
Code:
Dim BlueLite As String 'Light blue RBG values
BlueLite = "219,229,241" '.
Dim RGBVals() As Variant 'Array for indivicdual RGB values
RGBVals = Split(BlueLite, ",") '.
Aren't the parens required when declaring an array?