What is behind the bug I have a workbook in which several sheets have lots of shapes (including arrows). When scrolling through the sheet, it happens that the shapes do not refresh. Arrows become invisible, shape outlines become dotted. The shapes are very much still there - sometimes the arrows are just partially invisible. After searching online I found that this is a known bug when a sheet has lots of shapes. it is not related to my monitor refreshing - I have dual monitors and taking excel from one to the other does not refresh. There are several ways to do it, though - 1) selecting cells behind the shape 2) minimizing and maximizing excel 3) Selecting the shape itself(sometimes works).
My workaround and question I made a macro to refresh the shapes. Basically it selects all cells, and returns to what the active cell was, in a blink. I have to launch the macro in the VBE or with a button right now, but it works perfectly :
Sub refreshShapes()
Application.ScreenUpdating = False
Dim active As Range
Set active = ActiveCell
Cells.Select
active.Select
Application.ScreenUpdating = True
End Sub
Now I would like this macro to launch every time the user scrolls the sheet and stops scrolling because the bug happens only then. Is there a way to do so without using a timer? Is there another known way to prevent this bug/work with it in a better way?