Hi there, i want to assign excle cell value to textbox in event SheetSelectionChange but every time when the program reach the line textbox1 it goes again the form without assign the cell value!!!
Private Sub xWorkbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Excel.Range) Handles xWorkbook.SheetSelectionChange
Dim sheet As Excel.Worksheet = CType(Sh, Excel.Worksheet)
Me.TextBox1.Text = sheet.Name & ":" & _
Target.Address(ReferenceStyle:=Excel.XlReferenceStyle.xlA1)
End Sub
Private Sub xWorkbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Excel.Range) Handles xWorkbook.SheetSelectionChange
Dim sheet As Excel.Worksheet = CType(Sh, Excel.Worksheet)
Me.TextBox1.Text = sheet.Name & ":" & _
Target.Address(ReferenceStyle:=Excel.XlReferenceStyle.xlA1)
End Sub