HIHI. Dạ em cảm ơn Anh rất nhiều, đã rất tốt rồi anh ơi
Đây là code hoàn hiện anh ạ.
Sub ThemMoi()
Dim NewWS As Worksheet, ws As Worksheet, ws1 As Worksheet
Dim TenSheet As String
Dim VungDL As Range
Set ws = Workbooks("Book1").Sheets("menu")
'Tao sheet va doi ten theo ô
Worksheets.Add after:=ThisWorkbook.Sheets(ThisWorkbook.Sheets.Count)
Set NewWS = ThisWorkbook.Sheets(ThisWorkbook.Sheets.Count)
TenSheet = ws.Range("B1")
For Each ws In ThisWorkbook.Worksheets
If ws.Name = TenSheet Then
TenSheet = TenSheet & "(1)"
End If
Next ws
NewWS.Name = TenSheet
'Mo file
Set ws = Workbooks("Book1").Sheets("menu")
duongdan = ws.Range("B5").Value ' Vi trí cap nhat duong dan de mo file (ban chi can copy thay doi duong dan vao O B5")
Tenfile = ws.Range("B6").Value ' Ten file can mo (ban chi can copy ten file vao O B6")
Name_Open = duongdan & "\" & Tenfile ' Lenh mo file
Set wb = Workbooks.Open(Name_Open)
Worksheets(Array("02")).Select
'Copy du lieu tu file mo len va paste vao sheets tu dong tao ra
Set VungDL = Application.InputBox(Prompt:="Quet vung du lieu can di chuyen", Title:="Thong bao", Type:=8)
VungDL.Copy ThisWorkbook.Sheets(TenSheet).Range("A2")
Workbooks("Book1").Sheets("menu").Activate ' Tham khao tai:
https://freetuts.net/ref/cach-su-dung-thuoc-tinh-select-vba-390.html
End Sub