Solved Excel font color doesn change on changing windows high contrast mode

rvsw

New member
Local time
4:11 AM
Messages
25
Because of problems with my eyes, I often use windows in high contrast which is essentially as I understand, can be described as of Windows theme with dark colours. When I start Microsoft Excel 2010 on Windows 7 in high contrast mode, the Microsoft Excel background is black and the foreground is white like any other application in Microsoft Office, including Microsoft Outlook 2010.

When I send a Microsoft Excel file to someone else who is not using the more conventional Windows themes, their background is white. Since the foreground is also white, they do not see anything.
I face the same issue if I ever change my theme setting from high contrast to conventional Windows 7 themes.
I have to manually select the entire worksheet and then change the foreground colour to black
.
But this is not a problem in Microsoft Outlook. For example, if I have any drafts in Microsoft Outlook 2010 and I change the Windows key from high contrast to conventional Windows 7, then the foreground and background colour automatically change.

And this is the same behaviour that I see in other Windows application including notepad.

I have looked around for answers on this but could not find anything. I also looked in Microsoft Office settings but again there was no success. So I'm posting this query here in the hope of a solution.

If the direct solution is not possible, is there a possibility of a workaround in which I open Microsoft Excel and it automatically detects if Windows is in high contrast mode or at least the default background colour and then adjust the foreground colour? I was hoping to include this as a macro in Microsoft Excel so that I can send it to recipients of my Microsoft Excel file and they can run it instead of me asking them every time to change the foreground colour
. Thank you for any inputs
 

My Computer My Computer

At a glance

windows 7 ultimate x64
Computer type
Laptop
Computer Manufacturer/Model Number
Lenovo E 431
OS
windows 7 ultimate x64
Hi rvsw,

I think you will probably need to use something like a Workbook Object in Excel VBA. You could then use the method Workbook_Open(). Code placed in this method will execute when you open the Excel Workbook.

I am sure that there is somebody here that will be able to write some VBA code to do this for you!

The recipient will of course need to have Macros enabled!

Excel Options > Trust Centre > Trust Centre Settings > Macro Settings > and tick the desired Macro Setting.

I hope this helps!
 

My Computer My Computer

At a glance

Win 7 HP SP1 64-bit Vista HB SP2 32-bit Linux...Intel(R) Pentium(R) CPU P6200 @ 2.13GHz4.00 GBIntel(R) Graphics Media Accelerator HD
Computer type
Laptop
Computer Manufacturer/Model Number
Fujitsu LIFEBOOK
OS
Win 7 HP SP1 64-bit Vista HB SP2 32-bit Linux Mint 18.3
CPU
Intel(R) Pentium(R) CPU P6200 @ 2.13GHz
Motherboard
FUJITSU FJNBB06
Memory
4.00 GB
Graphics Card(s)
Intel(R) Graphics Media Accelerator HD
Sound Card
[1] Realtek High Definition Audio [2] Intel(R) Display Audio
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 59 Hz
Hard Drives
TOSHIBA MK5076GSX
Antivirus
AVG FREE
Thank you for your prompt response. I will check the workbook object. Yes I understand that the recipients need to have their macros enabled in Microsoft Excel.

However, I was hoping that this would be the last option. I was hoping to find some configuration setting that can be modified so that this behaviour is not seen.
 

My Computer My Computer

At a glance

windows 7 ultimate x64
Computer type
Laptop
Computer Manufacturer/Model Number
Lenovo E 431
OS
windows 7 ultimate x64
Back
Top