Rollover or Mouseover effect, as it is known in Excel world, induces cool graphical effect in an Excel sheet. The rolling of the cursor over different cells create different kind of effect in an excel sheet. It helps to create cool and clean graphical effect and executes a function with a roll of mouse.
Simple basic step to create a rollover effect
Case Description:
For Example consider a cell A10. You wish that Cell A1 and B1 are populated with row and column number of A10, whenever mouse is placed over Cell A10.
1. Create a function ABC
Public Function ABC(R As Range)
Sheet1.Range("A1").Value = R.Row
Sheet1.Range("B1").Value = R.Column
End Function
2. Using hyperlink() function
Go to cell A10 and insert following formula.
=hyperlink(ABC(A10),"ABCD")
We will see #Value! message in A10. But this is not a matter of concern as we can see cell A1 and B1 are populated with Row and Column value correctly.
This #value! can be avoided using IFERROR() function. IFERROR(HYPERLINK(ABC(A10),""), "") formula will avoid the display of #VALUE! in cell A10.
3.Conditional Formatting
In case, one wishes to change the color of cell when mouse/cursor is over the cell A10, he/she can use Conditional Formatting for that purpose.
Insert following formula in cell A3.
=AND(A1=10, A2=1)
After this, select A10 and click on Conditional Formatting/New Rule.
Select use a formula to determine which cells to format
Enter the formula (as shown in the figure) and select a color of your choice, as shown in the figure below.

And, here you go. as your cursor or mouse rolls over A10, its color changes to green

As mentioned earlier, rollover technique can be used to enhance look and feel of an excel sheet.
Simple basic step to create a rollover effect
Case Description:
For Example consider a cell A10. You wish that Cell A1 and B1 are populated with row and column number of A10, whenever mouse is placed over Cell A10.
1. Create a function ABC
Public Function ABC(R As Range)
Sheet1.Range("A1").Value = R.Row
Sheet1.Range("B1").Value = R.Column
End Function
2. Using hyperlink() function
Go to cell A10 and insert following formula.
=hyperlink(ABC(A10),"ABCD")
We will see #Value! message in A10. But this is not a matter of concern as we can see cell A1 and B1 are populated with Row and Column value correctly.
This #value! can be avoided using IFERROR() function. IFERROR(HYPERLINK(ABC(A10),""), "") formula will avoid the display of #VALUE! in cell A10.
3.Conditional Formatting
In case, one wishes to change the color of cell when mouse/cursor is over the cell A10, he/she can use Conditional Formatting for that purpose.
Insert following formula in cell A3.
=AND(A1=10, A2=1)
After this, select A10 and click on Conditional Formatting/New Rule.
Select use a formula to determine which cells to format
Enter the formula (as shown in the figure) and select a color of your choice, as shown in the figure below.
And, here you go. as your cursor or mouse rolls over A10, its color changes to green
As mentioned earlier, rollover technique can be used to enhance look and feel of an excel sheet.