Hello,
I have a protected sheet that has all formula columns set to locked & hidden. I would like to be able to show the text of the cells as the sheet is large and not all the text shows. I inserted an activeX text box and have the following code in the sheet. When I right click on a cell within the range designated the text box does not show. What am I doing wrong?
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("H:FC")) Is Nothing Then
Cancel = True
With TextBox1
.Visible = True
.Text = Target.Text
.Left = Target.Offset(, 1).Left
.Top = Target.Top
End With
Else
TextBox1.Visible = False
End If
End Sub
Thank you for your time and attention.
I have a protected sheet that has all formula columns set to locked & hidden. I would like to be able to show the text of the cells as the sheet is large and not all the text shows. I inserted an activeX text box and have the following code in the sheet. When I right click on a cell within the range designated the text box does not show. What am I doing wrong?
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("H:FC")) Is Nothing Then
Cancel = True
With TextBox1
.Visible = True
.Text = Target.Text
.Left = Target.Offset(, 1).Left
.Top = Target.Top
End With
Else
TextBox1.Visible = False
End If
End Sub
Thank you for your time and attention.