Active Cell Outline Bug

hotabae

Board Regular
Joined
Apr 18, 2018
Messages
167
Hello,

I've attached an image below to show what is happening on my worksheet. About half the time, when I open my file, there seems to be a display bug. If the bug occurs, I can still select cells and enter information, but the green outline around the active cell disappears (I have the same merged cells selected in both cases).

I'm not sure why it is happening, but it started happening when I implemented this protection code:

Code:
Private Sub workbook_Open()


Dim wSheetName As Worksheet

For Each wSheetName In Worksheets

    wSheetName.Protect Password:=””, UserInterFaceOnly:=True
    wSheetName.EnableSelection = xlUnlockedCells

Next wSheetName


Sheets("Cover").Activate
Sheets("Cover").Range("I11").Activate
ActiveWindow.View = xlNormalView


End Sub

I activate the cell on the cover and set the view to normal to initialize a starting point / view whenever opened, regardless of how it was saved.

The cell outline returns after any type of major screen update occurs (changing tab, zooming in/out, switching to VBA window, or collapsing and maximizing the excel window, etc....).

Does anyone have any idea why this might be happening?

z8lIskW.png


Thanks for your time!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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