Dimitris254
Board Regular
- Joined
- Apr 25, 2016
- Messages
- 139
i'm retrieving the cell color in a spreadsheet and assign it to a variable, then use the variable to color another cell.
The code will work regardless if color_1 is Long or String (the color number is something like 10587882).
So, byte-wise, which one is smaller?
Code:
color_1 = .Cells.Find(what:="mycell", LookIn:=xlValues, lookat:=xlWhole, SearchOrder:=xlByColumns).Interior.Color
.Cells(1, "A").Interior.Color = color_1
The code will work regardless if color_1 is Long or String (the color number is something like 10587882).
So, byte-wise, which one is smaller?