Flashing Formula Excel - Caused by VBA?

Posted on 2016-09-06
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?
Question by:Massimo Scola
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 52

Accepted Solution

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)

Author Comment

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

Expert Comment

by:Ryan Chong
ID: 41785723
do you have a sample can share with us? we will try to diagnose the issue
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.


Author Comment

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

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.

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()
    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.

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.

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Use Windows Task Scheduler to print a Word document weekly so your printer ink won't dry out.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

728 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