Solved

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

Posted on 2012-04-04
3
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

726 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