Link to home
Start Free TrialLog in
Avatar of shampouya
shampouya

asked on

Why does the VBA editor keep opening in Excel 2010?

Every time I run a certain macro (which is assigned to a button in my sheet), the VBA editor opens up and highlights the line below in yellow. It's not an error or even on of those red breakpoints, it's just simply a stoppage of the macro, which resumes when I press the green play button again. Why does this keep popping up?

    Cells.Find(What:="Reporting Period", After:=ActiveCell, LookIn:=xlValues, LookAt:=xlWhole).Select
Avatar of Simon
Simon
Flag of United Kingdom of Great Britain and Northern Ireland image

Try cutting the entire code from that module to the clipboard, then compiling the VBA project, then paste the code back in and compile again. That usually works for me.
Avatar of shampouya
shampouya

ASKER

I read something about maximizing and minimizing the VBA editor, is that related to this problem too?
ASKER CERTIFIED SOLUTION
Avatar of Simon
Simon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial