projecttoday
Programmer
I am creating an Excel spreadsheet with vba code which is executed in an Access database. Currently I am using transferspreadsheet.
There are text values that go into the cells of the spreadsheet. Each value has a number associated with it that I want to use to set the color of the cell but which does not appear in the spreadsheet. How can I associate a
formatting with a cell?
Example:
Value/code
ABCDE/1
FGHIJK/2
LMNOP/1
QRSTU/1
VWXYZ/3
codes
1 - red
2 - blue
3 - green
In the spreadsheet, in the cell with ABCDE, the color of the cell should be
red. For FGHIJK, the color of the cell is blue. Etc..
I need to put the value and its associated color in the spreadsheet. The best way I've come up with is to use a recordset or an array in the Access program that would mirror or map into the spreadsheet that I have already created with the transferspreadsheet. But I was wondering if there was a less awkward way, like a tag value or something?
Robert
There are text values that go into the cells of the spreadsheet. Each value has a number associated with it that I want to use to set the color of the cell but which does not appear in the spreadsheet. How can I associate a
formatting with a cell?
Example:
Value/code
ABCDE/1
FGHIJK/2
LMNOP/1
QRSTU/1
VWXYZ/3
codes
1 - red
2 - blue
3 - green
In the spreadsheet, in the cell with ABCDE, the color of the cell should be
red. For FGHIJK, the color of the cell is blue. Etc..
I need to put the value and its associated color in the spreadsheet. The best way I've come up with is to use a recordset or an array in the Access program that would mirror or map into the spreadsheet that I have already created with the transferspreadsheet. But I was wondering if there was a less awkward way, like a tag value or something?
Robert