اظن أني عرفت كيف اختيار الورقة أو النطاق المطلوب نسخه .. فقط أحاول أتعلم حسب وقتي ..
في الملف هذا الكود .. الذي في اللون الأحمر هو النطاق و الكحلي هو الورقة .. و يمكنك اختيار أي نطاق يتم نسخة و أي ورقة كذلك حسب اسمها لديك
والله اعلم
Private Sub CommandButton1_Click()
On Error Resume Next
Dim xlSheet As Worksheet
Dim xlSh As Worksheet
If Me.BackColor = 192 Then MsgBox "ÇáÇÓã ãÑÝæÖ äÕíÇð", vbInformation + vbMsgBoxRight, "ÊäÈíå": GoTo 1
If TextBox1.Text = "" Then MsgBox "ÎáÇíÇ ÝÇÑÛÉ ", vbInformation + vbMsgBoxRight, "ÊäÈíå": GoTo 1
For Each xlSh In ActiveWorkbook.Worksheets
If xlSh.Name = TextBox1.Text Then MsgBox "ÇÓã ãßÑÑ", vbInformation + vbMsgBoxRight, "ÊäÈíå": GoTo 1
Next xlSh
B = MsgBox(" åá ÊÑíÏ ÇÖÇÝÉ " & vbNewLine & "" & vbNewLine & "ÇáÍÓÇÈ : " & TextBox1.Text, vbOKCancel + vbQuestion + vbMsgBoxRight, "ÊÃßíÏ ÇÖÇÝÉ ÍÓÇÈ")
If B = 2 Then GoTo 1
Application.ScreenUpdating = False
Set xlSheet = ActiveWorkbook.Sheets.Add
With xlSheet
.Name = TextBox1.Text
33.Range("A1:K74").Copy
.Paste
.Range("A1").PasteSpecial Paste:=xlPasteColumnWidths
.[C3] = "ÍÓÇÈ / " & TextBox1.Text
.[A5].Select
End With
Application.CutCopyMode = False
With ActiveWindow
.FreezePanes = True
.DisplayGridlines = False
End With
Set xlSheet = Nothing
Application.ScreenUpdating = True
End
On Error GoTo 0
1 End Sub