Solved

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

Posted on 2012-04-04
3
159 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

760 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

26 Experts available now in Live!

Get 1:1 Help Now