Solved

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

Posted on 2014-10-22
2
327 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

839 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