|
Question : Weird color change when switching from MS Excel to MS Access
|
|
I created a script that exports an Access report to Excel and then runs several different formatting exercises on the Excel spreadsheet (from within Access).
Just about everything is working fine except for a strange color bug. One of the formatting changes I make is a conditional formatting on a column on the right of the table. MS Excel gives me a good choice of colors and I choose orange and yellow.
However, after the script runs and the report is generated in EXCEL format, the colors are a drab purple and a slightly off yellow. The yellow is no problem but I dont want the other color to be purple.
I went in and investigated and it appears that the ENTIRE color palette has changed for Excel for the version of the file/program that spawns from the Access VBA code.
Here is a comparison. On the top is the color menu from a routine execution of MS Excel from my desktop... on the bottom is the color menu I am offered in Excel from the file generated from the Access report.
http://img517.imageshack.us/my.php?image=colorsda9.jpg
After looking at it closer, it seems like the only real "change" is the is that the entire second column is completely different. Weird.
Any ideas?
|
|
Answer : Weird color change when switching from MS Excel to MS Access
|
|
broohaha9,
You might have a custom color pallet for the Spawned Excel.
This can "remap" the colors.
Check "Colors" in the Options tab in your standard Excel and the "Spawned" Excel.
If it has been modified, you can click "reset"
(BTW, Orange is the color that is supposed to be in that position)
Hope this helps as well
Jeffrey Coachman
|
|
|
|