showing values instead of formulas in the box above

  • Thread starter Thread starter Legacy 23340
  • Start date Start date
L

Legacy 23340

Guest
hi i have a list of couple hundred cells and would like to do some modifications to their display mode.

meaning say for example i have a cell J10 i have this formula

=$B$1*$B$2+$B$3*85 and in the cell where the formula fits in is a numeric value 19127

Is there something i can do to hide the formula =$B$1*$B$2+$B$3*85 and show only 19127 when i move the cursor over the cell with the arrow keys? and show it in the box up above.

i would have to apply the modification to hundreds of cells.

looking for simple help here.

TIA.
 
Replace that with this version instead, and see if it works better for you.


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
Dim y As Range, z As String
Application.EnableEvents = False
With Target
z = .Value
On Error Resume Next
For Each y In Cells.SpecialCells(1)
y.Comment.Visible = False
Next y
.ClearComments
If .HasFormula = True Then
.AddComment
.Comment.Visible = True
.Comment.Text z
End If
End With
On Error GoTo 0
Application.EnableEvents = True
End Sub
 
Upvote 0

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,224,882
Messages
6,181,546
Members
453,053
Latest member
ezzat

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