Solved

Calculate a value based on the cell your mouse is moving over in excel

Posted on 2012-04-04
3
178 Views
Last Modified: 2012-04-19
We're frequently needing to convert prices between Dollars and Euros or other currency.  

I was wondering if you could write a macro that would allow you to create a mouse-over effect, so when you move your mouse over a cell it would read the value in the cell and convert it to Euros.

So cell a1 contains $50 the mouse over would show 38.06
0
Comment
Question by:cdesk458
  • 2
3 Comments
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 500 total points
ID: 37808684
It's possible to do what you want but very difficult to implement for two reasons. The first is that there is no mouse move event in Excel. You can fake it using controls but that adds stuff to your worksheet that makes it harder to work with it. If you use timer events you can figure out the location of the cursor but it's tricky and requires knowledge of the various exposed widgets in the window and how wide or tall they are. You will also have VBA code running all the time to do this work.

Kevin
0
 

Author Comment

by:cdesk458
ID: 37808746
Is there a way to right click on the cell and perform the calculation? or something providing the ease of use, using a different UI technique???
0
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 37808808
That would work. So would a double-click. Much more straightforward.

Kevin
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

810 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