Solved

How to capture key press event in Excel formula bar using VBA?

Posted on 2014-10-22
2
300 Views
Last Modified: 2014-11-03
Hi All,

I need to capture an event when ever user types in excel formula bar.

Is there any way to work around for the above requirement.
0
Comment
Question by:pkoivula
2 Comments
 
LVL 11

Accepted Solution

by:
jkpieterse earned 500 total points
ID: 40398631
Using just VBA, it is impossible to run a macro when Excel is in edit mode. This includes events.

Whilst you can use an API timer callback to fire VBA code in Excel regardless of Excel's state, It is not safe to try running VBA code while a user is editing a formula. You risk crashing Excel if you try to do that.
0
 

Author Comment

by:pkoivula
ID: 40420038
OK, thanks.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

705 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

18 Experts available now in Live!

Get 1:1 Help Now