Nhờ các bạn sửa dùm đoạn code sau :
Sub auto_open()
Set fs = CreateObject("Scripting.FileSystemObject")
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Processor")
For Each objItem In colItems
s3 = objItem.ProcessorId
s4= "AB01" & s3 & "10BA"
Set tep1 = fs.CreateTextFile("d:\KC2010\vn10.txt", True)
tep1.Write (s4)
tep1.Close
SetAttr "d:\KC2010\vn10.txt", vbHidden + vbReadOnly
Application.Quit
End Sub
Sub auto_open()
Set fs = CreateObject("Scripting.FileSystemObject")
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Processor")
For Each objItem In colItems
s3 = objItem.ProcessorId
s4= "AB01" & s3 & "10BA"
Set tep1 = fs.CreateTextFile("d:\KC2010\vn10.txt", True)
tep1.Write (s4)
tep1.Close
SetAttr "d:\KC2010\vn10.txt", vbHidden + vbReadOnly
Application.Quit
End Sub