Mình có đoạn key update Formulas, tuy nhiên nó dài và làm file mình nặng quá chạy không được. Bác nào giúp mình bổ sung chạy nhanh được ko ạ
Trong đó Focus làSub chaybangkeg()
'
' chaybangkeg Macro
'
' Keyboard Shortcut: Ctrl+g
'
Call Focus(True)
Sheets("Bankemuavao").Select
Application.Run "DoUpdateAllFormulas"
Sheets("BK ban r").Select
Application.Run "DoUpdateAllFormulas"
Sheets("LCTTTT").Select
Application.Run "DoUpdateAllFormulas"
Sheets("BCKQHDKD").Select
Application.Run "DoUpdateAllFormulas"
Sheets("TH331").Select
Application.Run "DoUpdateAllFormulas"
Sheets("TH131").Select
Application.Run "DoUpdateAllFormulas"
Sheets("CDTK").Select
Application.Run "DoUpdateAllFormulas"
Sheets("NKC").Select
Application.Run "DoUpdateAllFormulas"
Sheets("NKC22").Select
Application.Run "DoUpdateAllFormulas"
Sheets("TH NXT-VTC").Select
Application.Run "DoUpdateAllFormulas"
Sheets("Luu y").Select
Range("G3").Select
Call Focus(False)
End Sub
Sub Focus(ByVal Flag As Boolean)
With Application
.EnableEvents = Not Flag
.ScreenUpdating = Not Flag
.Calculation = IIf(Flag, xlCalculationManual, xlCalculationAutomatic)
End With
End Sub