Solved

Flashing Formula Excel - Caused by VBA?

Posted on 2016-09-06
7
62 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:mscola
  • 4
  • 3
7 Comments
 
LVL 49

Accepted Solution

by:
Ryan Chong earned 500 total points
Comment Utility
>>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:mscola
Comment Utility
Isn't the screen updating command for actions that take place on the worksheet? (Not formula bar)
0
 
LVL 49

Expert Comment

by:Ryan Chong
Comment Utility
do you have a sample can share with us? we will try to diagnose the issue
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:mscola
Comment Utility
How confidential will the data be treated which I upload here (as part of private question)?
0
 
LVL 49

Expert Comment

by:Ryan Chong
Comment Utility
>>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:mscola
Comment Utility
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:mscola
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now