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.
 

p45cal

Well-known Member
Joined
Nov 10, 2009
Messages
4,763
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:

Forum statistics

Threads
1,082,047
Messages
5,362,881
Members
400,696
Latest member
Kclynn

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top