[COLOR=#000000][FONT=Courier New][COLOR=navy]Sub Save[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]()[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb][COLOR=navy]Dim Dir[/COLOR] [/COLOR][COLOR=#007700]As [/COLOR][/FONT][FONT=Courier New][COLOR=navy]String[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000bb][COLOR=navy]MyFileName[/COLOR] [/COLOR][COLOR=#007700]= [/COLOR][COLOR=navy]Right(ActiveWorkbook.FullName, Len(ActiveWorkbook.FullName) - InStrRev(ActiveWorkbook.FullName, [/COLOR][/FONT][FONT=Courier New][COLOR=navy][COLOR=navy]"\", ,[/COLOR] vbTextCompare))[/COLOR][/FONT]
[COLOR=#dd0000][FONT=Courier New][COLOR=blue][COLOR=navy]Dir[/COLOR] [/COLOR][COLOR=navy]=[/COLOR] "[/FONT][/COLOR][FONT=Courier New][COLOR=#0000bb]D[/COLOR][COLOR=#007700]:\[/COLOR][/FONT][COLOR=#dd0000][FONT=Courier New]" [COLOR=blue] [COLOR=darkgreen]'Bạn muốn chỉnh sữa vị trí lưu thì chỉnh ở đây[/COLOR][/COLOR][/FONT][COLOR=blue]
[FONT=Courier New][COLOR=navy]ThisWorkbook.Save[/COLOR][/FONT]
[FONT=Courier New][COLOR=navy]Sheet2.[E5] = Sheet2.[E5].Value[/COLOR][/FONT]
[FONT=Courier New][COLOR=navy]ThisWorkbook.SaveAs Filename:=Dir & MyFileName[/COLOR][/FONT]
[FONT=Courier New][COLOR=navy]End Sub[/COLOR] [/FONT][/COLOR][/COLOR][/COLOR]