Opening an excel file causes color changes on other open files

aMeek

New Member
Joined
Nov 19, 2010
Messages
12
My apologies in advance if I don't use correct terminology, I'll do my best to relate what I'm seeing. I have an Excel file that is the output of a macro on another Excel file. If If I'm using Excel with other files, and I open this output file as well, the background colors on my originally open files will change.

If, after this change, I close the changed files and the output file, and reopen the changed files in that instance of Excel, the colors are still changed.

If I fully close that instance of Excel, and open the original files in a new instance of Excel, the colors have then reverted to their original colors.

Checking the cell format option before and after opening the file, it looks like three of the cell shading colors change. I'm using one of these colors, so it then changes the color on the sheet.

In the macro, I use a lot of variations of
If ActiveCell.Value = "B536P " Then
Selection.Interior.ColorIndex = 54
Selection.Font.ColorIndex = 2
Selection.Font.Bold = True

I'm using Excel 2003, SP3.

Any ideas, or more information needed?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
As I understand it, an Excel 2003- workbook with a standard color palette doesn’t have color palette information; if you open a workbook with a custom palette, the workbook with the standard palette will show the colors of the custom palette until closed and reopened.

So you can either not open another workbook with a custom palette while using workbooks with a standard palette, or modify the workbook with the standard palette to have the colors you like.
 
Upvote 0
I see - some of the colors the macro pulls out are non standard and affecting the pallet. Thanks for the info, I'll see what I can figure out from here (other than opening multiple instances of Excel for different files)
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,830
Members
449,096
Latest member
Erald

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top