Excel font color doesn change on changing windows high contrast mode


  1. Posts : 25
    windows 7 ultimate x64
       #1

    Excel font color doesn change on changing windows high contrast mode


    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


  2. Posts : 6,021
    Win 7 HP SP1 64-bit Vista HB SP2 32-bit Linux Mint 18.3
       #2

    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


  3. Posts : 25
    windows 7 ultimate x64
    Thread Starter
       #3

    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


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:06.
Find Us