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

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,223,891
Messages
6,175,229
Members
452,621
Latest member
Laura_PinksBTHFT

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