keldsor
Board Regular
- Joined
- Jun 9, 2017
- Messages
- 52
I have some beams (shapes) all over e worksheep.
I want a screen tip to be visible when the user hoover over each of the beams.
I've inserted the beams with this code:
and the tip with this (NOT WORKING !!!)
How can I add the TIP to the beams ?
I want a screen tip to be visible when the user hoover over each of the beams.
I've inserted the beams with this code:
Code:
Set B = ActiveSheet.Shapes.AddConnector(msoConnectorStraight, _
leftSpace + DateDiff("d", "01-01-" & stYear, fraDato) / totalDates * yearSpace * (DateDiff("y", stYear, eYear) + 1), _
Ypos, _
leftSpace + DateDiff("d", "01-01-" & stYear, tilDato) / totalDates * yearSpace * (DateDiff("y", stYear, eYear) + 1), _
Ypos)
With B
.Name = beamNavn
.OnAction = "showBOiDInAccess"
.Line.ForeColor.RGB = ColorConstants.vbRed
.Line.Weight = 3 ' tykkelse af bjælken
End With
makeScreenTip B, tip
Set B = Nothing
and the tip with this (NOT WORKING !!!)
Code:
Private Sub makeScreenTip(eD As Shape, tip As String)
' inserts a tip screenTip on the eD beam
' With eD.TextFrame.Characters
' .Font.Color = vbBlack
' .Text = " " & tip
' ActiveSheet.Hyperlinks.Add eD, "", "", ScreenTip:=.Characters.Text
' End With
End Sub
How can I add the TIP to the beams ?