Solved

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

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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
Determine dependencies 3 21
Tricky shapes formula part 3 4 31
I need macro to insert an character 8 19
MS Excel duplicate input detect. 8 16
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

756 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