I've two sheets one of which I'm writing a code, the problem comes when executing line (16 and up) where I'm trying to copy a cell content to text box in the other sheet.
The first sheet name is "Master Card"
The second sheet name is "تسجيل"
Private Sub CommandButton1_Click()
LR1 = Range("T" & Rows.Count).End(xlUp).Row - 5
Dim I As Integer
If Range("T6").Value = "" Then
MsgBox "Pls insert employees ID Starting from cell T6", vbOKOnly
Else
Range("T6").Select
For I = 1 To LR1
ActiveCell.Copy
Range("B3").Select
Selection.PasteSpecial xlPasteValues
ActiveSheet.PrintOut copies:=1
Range("B3").Select
selection.copy
Sheets("تسجيل").Select
TextBox1.paste
ActiveSheet.PrintOut copies:=1
Sheets("Master Card").Select
Range("T6").Select
ActiveCell.Offset(I, 0).Select
Next I
End If
End Sub