animation pop-up after hovering over a cell

msword

New Member
Joined
Oct 23, 2020
Messages
46
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
Hello everyone.

Is there a way to achieve an animation as a popup after hovering over a cell on windows/macos/anything? (cell comment's background ect.)
Any workaround is appreciated.

Thanks.
 
Last edited:

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
If you would like you can add a comment to the cell, and have a picture show up while you hover over it. if you need actual animation you may need VBA
 
Upvote 0
1. yes i need actual animation
2. after hovering over a cell
any suggestions how to do it?
 
Upvote 0
Hope this may point you in the right direction.
Using the following arrangement on sheet 1 - note the named cell (C1) "NameRollover" and the CountA formula in D1 (you can hide those columns if you like)

Mouse Over Animation.xlsb
ABCD
1RunAnimationRunAnimationRunAnimation1
2Don't RunDon't Run
3
Sheet1
Cell Formulas
RangeFormula
D1D1=COUNTA(C1:C2)
A1A1=IFERROR(HYPERLINK(ChangeAnimation(B1)),"RunAnimation")
A2A2=IFERROR(HYPERLINK(ChangeAnimation(B2)),"Don't Run")
Named Ranges
NameRefers ToCells
NameRollover=Sheet1!$C$1D1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A2Expression=$A1=$C$1textNO


Put the following code in the Sheet1 code module:
VBA Code:
Private Sub Worksheet_Calculate()
    If [C1] = "RunAnimation" Then PlayAnimation
End Sub

And the following code in a standard module:
VBA Code:
Option Explicit
Public Function ChangeAnimation(Name As Range)
    Range("NameRollover") = Name.Value
End Function

Sub PlayAnimation()
    Sheet1.Shapes("Image1").Visible = True
    Dim x As Long: x = 0
    Do
    DoEvents
        x = x + 2
        Sheet1.Shapes("Image1").Left = x
        Sheet1.Shapes("Image1").Rotation = x
    Loop Until x = 500
    Sheet1.Shapes("Image1").Visible = False
End Sub

Then when you 'hover' over cell A1 - your animation should run. For the sake of demonstration, you need an image (called "Image1") on sheet 1 to start with.

Link to demonstration file here
 
Upvote 0
There seems to have been a problem with the first link to the demo file - try this instead
 
Upvote 0

Forum statistics

Threads
1,216,788
Messages
6,132,703
Members
449,753
Latest member
swastikExcel

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top