Solved

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

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

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…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

739 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