chào Thầy! e viết theo câu lệnh của thầy như vậy mà sao nó báo lỗi
Sub CHON_FILE()
With Application.FileDialog(msoFileDialogFilePicker)
.AllowMultiSelect = False
.Show
.Title = "chon file cua toi"
MsgBox.SelectedItems (1)
End With
End Sub
còn khi copy trên file bài giảng thì nó chạy. không biết bị lỗi như thế nào?
Chào bạn, bạn thêm dấu cách vào trước MsgBox. nhé
MsgBox .SelectedItems(1)