I wanted to know is it possible to preview image links by hovering mouse cursor over image urls in excel, or google sheets, or any spreadsheet editor.
相关问题
- Excel sunburst chart: Some labels missing
- Error handling only works once
- Error handling only works once
- Excel formula in VBA code
- Excel VBA run time error 450 from referencing a ra
相关文章
- Get column data by Column name and sheet name
- programmatically excel cells to be auto fit width
- Unregister a XLL in Excel (VBA)
- Unregister a XLL in Excel (VBA)
- How to prevent excel from truncating numbers in a
- How to allow access for importrange function via a
- Google app script trigger not working
- numeric up down control in vba
You made me curious, so I looked into this.
The answer is, yes - it requires a bit of VBA and is a bit hacky, but here's how you can do it.
First of all, doing anything on cell hover in excel is a bit hacky.
To do so, we use the
HYPERLINK
formula of a cell.=HYPERLINK(OnMouseOver("http://i.imgur.com/rQ5G8sZ.jpg"),"http://i.imgur.com/rQ5G8sZ.jpg")
In this case, I have the URL of a grumpycat picture in my formula.
I also pass this link to a function I create called
OnMouseOver
Finally, in order to clear it when we hover away, we have to put some formulas in the other cells near it.
=HYPERLINK(Reset())
And the associated function:
Results:
Edit
Expanding on this with multiple links.
We can pass a cell reference along with this to do this with multiple links and have them appear next to the cell.