Pivot Table Misc

djubex

New Member
Joined
May 11, 2012
Messages
1
Hey guys,

I have a problem I would like some of you to help me or at least guide me.
I have a Pivot Table with a lot of divisions, like company divisions and are structured on 5 levels of importance and break down as such. Each division has a unique code.
My issue is that i would like Excel to display a custom message whenever i hover my mouse over the name of a division, and that message to be its code.
I can't use events because Pivot Tables dont care about cell refferences and I would like the message to be displayed not be be in a MsgBox, that the user has to acknoledge and hit ENTER to close, i want the message to be in like a popup ballon.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
There is op hover/mousemove event over sheets/pivot tables, however while it might be possible to put some object(s) invisibly over the pivot table/pivot table cells, it would be quite complex coding.
As the beginning of an alternative solution, try out the code below in a sheet's code module.
Is it worth pursuing?
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
On Error Resume Next
Shapes("blah").Delete
On Error GoTo 0
With Shapes.AddTextbox(msoTextOrientationHorizontal, Target.Offset(, 1).Left + 5, Target.Top, 84.75, 29.25)
  .Name = "blah"
  .DrawingObject.Caption = ActiveCell.Value
  .DrawingObject.Interior.ColorIndex = 36
  .DrawingObject.Border.LineStyle = xlLineStyleNone
  .Fill.Transparency = 0.08
End With
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,854
Members
449,096
Latest member
Erald

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