Piotr Kalinowski
New Member
- Joined
- Apr 10, 2020
- Messages
- 1
- Office Version
- 2013
- Platform
- Windows
I've got a problem and really need some help from you. I was trying to google the solution, but found nothing useful. My macro runs by clicking on a commandbutton1 which is located on sheet1. Important detail: a chart is also located on sheet1.
The only thing the macro does is switching sheet2 from 'hidden' to 'visible'.
THE PROBLEM: after switching the sheet2 from hidden to visible the screen is flickering.
Notes:
The only thing the macro does is switching sheet2 from 'hidden' to 'visible'.
VBA Code:
Sub abc()
Sheets(2).Visible = Not Sheets(2).Visible
End Sub
THE PROBLEM: after switching the sheet2 from hidden to visible the screen is flickering.
Notes:
- The problem occurs only on the sheets with charts. It seems like excel is doing some chart update.
- It occurs only when sheet2 is being switched to "visible".
- I've tried:
VBA Code:
Application.EnableEvents = False
Application.ScreenUpdating = False
Application.DisplayStatusBar = False
Application.Calculation = xlCalculationManual
- I deleted any other macros and events in the workbook.
- I've tried to run a macro directly from VBA editor (not via commandbutton1).
- I've tried debugging step by step.