R
rp
hi all! i have floating textbox on this excel file and what ever is the
content of the active cell appears on it. it works fine but when i try to
select 2 or more cells, an error appears. below is my code. please help
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
With ActiveWindow.VisibleRange
TextBox1.Top = .Top + 175
TextBox1.Left = .Left + .Width - TextBox1.Width - 120
TextBox1.Value = Target.Value
End With
End Sub
content of the active cell appears on it. it works fine but when i try to
select 2 or more cells, an error appears. below is my code. please help
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
With ActiveWindow.VisibleRange
TextBox1.Top = .Top + 175
TextBox1.Left = .Left + .Width - TextBox1.Width - 120
TextBox1.Value = Target.Value
End With
End Sub