Solved

Flashing Formula Excel - Caused by VBA?

Posted on 2016-09-06
7
71 Views
Last Modified: 2016-09-06
I am working on a project with many userforms with a wide range of controls (listboxes, textboxes, MonthView etc.) using Windows 10.

Once data has been added to the worksheet, the formula bar keeps flashing. This also happens when I add data from a userform which doesn't have the standard controls.

The worksheet does not have any shapes: just listboxes, charts and pivot tables. Formulae are kept to a minimum as the logic is implemented in the userform. I decided to use this method as I have thousands of entries in various tables.

What are the likely causes of the formula bar flashing?
Has anyone experienced the same problem in the past?
0
Comment
Question by:Massimo Scola
  • 4
  • 3
7 Comments
 
LVL 50

Accepted Solution

by:
Ryan Chong earned 500 total points
ID: 41785709
>>What are the likely causes of the formula bar flashing?
you may try to turn off the Excel screen updates by using command:
Application.ScreenUpdating = False

Open in new window


Application.ScreenUpdating Property (Excel)
https://msdn.microsoft.com/en-us/library/office/ff193498.aspx
0
 

Author Comment

by:Massimo Scola
ID: 41785720
Isn't the screen updating command for actions that take place on the worksheet? (Not formula bar)
0
 
LVL 50

Expert Comment

by:Ryan Chong
ID: 41785723
do you have a sample can share with us? we will try to diagnose the issue
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:Massimo Scola
ID: 41785809
How confidential will the data be treated which I upload here (as part of private question)?
0
 
LVL 50

Expert Comment

by:Ryan Chong
ID: 41785813
>>How confidential will the data be treated which I upload here (as part of private question)?
definitely knowing your concern but without knowing the real scenario, it's difficult for troubleshooting.

you can try to make a copy, and then delete/mask your data if it's feasible to upload.
0
 

Author Comment

by:Massimo Scola
ID: 41785922
Before upload the workbook, let me show you one more thing.
I use these subs to turn on the speed or off:

Sub SpeedOn()
DoEvents
    On Error Resume Next
    With Application
        .Calculation = xlCalculationManual
        .ScreenUpdating = False
        .EnableEvents = False
        .DisplayAlerts = False
        .Cursor = xlWait
        .EnableCancelKey = xlErrorHandler
    End With
End Sub

Sub SpeedOff()
    
    With Application
        .Calculation = xlCalculationAutomatic
        .ScreenUpdating = True
        .EnableEvents = True
        .DisplayAlerts = True
        .CalculateBeforeSave = True
        .Cursor = xlDefault
        .EnableCancelKey = xlInterrupt
    End With
End Sub

Open in new window


Is this one way to speed on/off ?

I usually add SpeedOn before saving data to the workbook and SpeedOff after saving the data.
0
 

Author Closing Comment

by:Massimo Scola
ID: 41786120
I have absolutely no idea what happened but for some reason the worksheet now works.

I hope this won't happen again.

Thanks for your help.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question